2022-06-20 08:28:29 +00:00
|
|
|
name: Version Bump
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ develop, main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
bump:
|
|
|
|
if: contains(github.event.head_commit.message, 'chore(release)') == false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2022-06-20 09:08:58 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-06-20 08:28:29 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.CI_PAT_TOKEN }}
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup git config
|
|
|
|
run: |
|
|
|
|
git config --global user.name "standardci"
|
|
|
|
git config --global user.email "ci@standardnotes.com"
|
|
|
|
|
|
|
|
- name: Import GPG key
|
2022-06-20 09:08:58 +00:00
|
|
|
uses: crazy-max/ghaction-import-gpg@v5
|
2022-06-20 08:28:29 +00:00
|
|
|
with:
|
|
|
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
|
|
passphrase: ${{ secrets.PASSPHRASE }}
|
|
|
|
git_user_signingkey: true
|
|
|
|
git_commit_gpgsign: true
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '16.x'
|
|
|
|
|
2022-06-22 08:17:47 +00:00
|
|
|
- name: Install locally
|
|
|
|
run: yarn install --immutable
|
|
|
|
|
2022-06-20 08:28:29 +00:00
|
|
|
- name: Bump Prod Version
|
|
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
run: yarn release:prod
|
|
|
|
|
|
|
|
- name: Bump Beta Version
|
|
|
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
|
|
|
run: yarn release:beta
|