mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-06-29 06:00:20 -04:00
ci: add build steps and bump node version
This commit is contained in:
parent
b393107a84
commit
1b9a9b36c2
2 changed files with 26 additions and 1 deletions
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
|
@ -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
2
.nvmrc
|
@ -1 +1 @@
|
||||||
v16
|
v18
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue