Upgrade Node.js to 20 #147
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: checkin | |
on: | |
- push | |
- pull_request | |
jobs: | |
checkin: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: install | |
run: yarn install --frozen-lockfile | |
- name: build | |
run: yarn build | |
- name: test | |
run: yarn test | |
- name: release | |
run: yarn release | |
- name: 'check for uncommitted changes' | |
# Ensure no changes | |
run: | | |
git add . | |
if ! git diff --cached --color=always --exit-code -- . ':!node_modules'; then | |
echo "::error::Found changed files after build. Please run 'yarn release' and check in all changes." | |
exit 1 | |
fi |