Trigger Workflow #75
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: PROD_dispatch | |
on: [repository_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
ref: dev | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Set npm to save exact version numbers | |
run: npm config set save-exact true | |
- name: Update juneojs package to latest version | |
run: npm install juneojs@latest | |
- name: Build to check if juneojs update broke anything | |
run: npm run build | |
- name: Commit and push if changed | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
git add -A | |
git diff-index --quiet HEAD || git commit -m "Update juneojs to latest version" | |
git push origin dev |