Skip to content

Update github-actions.yml #5

Update github-actions.yml

Update github-actions.yml #5

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
name: 'Install dependencies'
- run: npm audit
name: 'Audit'
continue-on-error: true
- run: pwd
name: 'Validate Current path'
- run: ls
name: 'List files'
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