Skip to content

Merge remote-tracking branch 'refs/remotes/origin/main' #415

Merge remote-tracking branch 'refs/remotes/origin/main'

Merge remote-tracking branch 'refs/remotes/origin/main' #415

name: Changes accepted
on:
push:
branches:
- 'main'
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{secrets.VERSION_BUMP_TOKEN}}
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: yarn
- name: Commit and push updated version
run: |
yarn version -i patch
new_version=$(cat package.json | jq -r '.version')
git config --global user.name "Awell CI"
git config --global user.email "[email protected]"
git add package.json .yarn/versions
git commit -m "ci: bump version to $new_version [skip ci]" && git push
git tag -a $new_version -m "ci: bump version to $new_version" && git push origin $new_version