ci: add build steps and bump node version

This commit is contained in:
Ron de las Alas 2023-12-08 14:06:07 -05:00
parent b393107a84
commit 1b9a9b36c2
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,25 @@
name: build-scratch-analysis
on:
push:
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test
- name: Semantic Release
if: github.ref_name == 'master'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx --no -- semantic-release

2
.nvmrc
View file

@ -1 +1 @@
v16
v18