Skip to content

ci: update node version to 20 #43

ci: update node version to 20

ci: update node version to 20 #43

Workflow file for this run

name: Node.js CI/CD
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: [self-hosted, Linux, X64, marquinhos]
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install Dependencies and Build
run: |
npm ci
npm run build
deploy:
needs: build
runs-on: [self-hosted, Linux, X64]
steps:
- name: Make deploy.sh executable
run: chmod +x ./deploy.sh
- name: Execute deploy.sh
run: echo "${{ secrets.DVNS_CLUSTER_PASSWORD }}" | sudo -S ./deploy.sh "$(pwd)/dist"