chore(deps): update dependency @types/node to v20.4.3 #990
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: Build and Test | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: 'Build and Test (Node: ${{ matrix.node.name }})' | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') || github.event_name == 'workflow_dispatch' }} | |
strategy: | |
matrix: | |
node: | |
- name: LTS | |
version: lts/* | |
- name: Previous LTS | |
version: lts/-1 | |
- name: Current | |
version: node | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: ${{ matrix.node.version }} | |
cache: npm | |
- name: Update npm | |
run: npm i -g npm | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run postinstall scripts | |
run: npm rebuild && npm run prepare --if-present | |
- name: Run tests | |
run: npm test |