Update github-actions.yml #3
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
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
jobs: | |
CI: | |
name: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: '20' | |
- run: npm install | |
- run: pwd | |
- run: ls | |
dev: | |
name: deploy dev | |
environment: 'dev' | |
needs: CI | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: '20' | |
- run: npm install | |
prod: | |
name: deploy prod | |
environment: 'prod' | |
needs: dev | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: '20' | |
- run: npm install |