Merge pull request #249 from stakwork/update/pull-before-create-release #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Build Files and Update version # | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
npm-build-and-update-version: | |
name: build | |
runs-on: | |
- ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Run Build | |
working-directory: ./app | |
run: | | |
git config user.name 'Github Actions' | |
git config user.email [email protected] | |
yarn install | |
yarn run build | |
git add ./dist -f | |
git commit -m "ci: automatic build" || echo -n | |
git push --set-upstream origin master | |
- name: Pull Latest Changes | |
run: | | |
git fetch origin | |
git checkout master | |
git pull origin master | |
- name: Create New Release | |
uses: rymndhng/release-on-push-action@master | |
with: | |
bump_version_scheme: patch | |
use_github_release_notes: true | |