Dev stable build deployment #11
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: Dev stable build deployment | |
on: | |
workflow_run: | |
workflows: | |
- CI | |
types: | |
- completed | |
branches: | |
- master-stable | |
jobs: | |
on-success: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Node setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.12.1 | |
cache: 'npm' | |
# cache node modules for all jobs to use | |
- uses: actions/cache@v3 | |
id: node_modules-cache | |
with: | |
path: | | |
**/node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/build | |
key: install-cache-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
- run: npm i # use cached modules | |
- run: npm run build:dev | |
# TODO: run the deployment script |