Bump @types/node from 20.16.1 to 22.5.1 #556
Workflow file for this run
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: Node.js CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
registry-url: https://registry.npmjs.org | |
- uses: justgook/[email protected] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
- uses: arduino/[email protected] | |
with: | |
version: 3.19.0 | |
- name: install | |
run: npm ci | |
- name: build | |
run: | | |
mkdir generated | |
npm ci | |
npm run build | |
- name: test | |
run: | | |
./generate_test_protos.sh | |
npm test | |
- name: npm publish | |
if: ${{ github.event_name == 'push' }} | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN | |
npm publish --access public || true | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: generated | |
path: generated/Proto |