ci: update node js to version 22 (#51) #70
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
name: push-master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_test_publish: | |
name: Build, test, and publish unstable release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# checkout master explicitly as workflow triggered on a tag which results in checkout of detached HEAD | |
ref: master | |
# 0 indicates all history, needed for correct unstable version generation (commit count since last release) | |
fetch-depth: 0 | |
- name: Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
registry-url: "https://registry.npmjs.org" | |
- name: Install, lint and build | |
run: | | |
yarn install --frozen-lockfile | |
yarn lint | |
yarn build | |
- name: Test (unit) | |
run: yarn test | |
- name: Publish unstable release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLIC_TOKEN }} | |
run: | | |
git config user.name "Mattr CI" | |
git config user.email "[email protected]" | |
yarn publish:unstable |