Skip to content

chore(deps): update node.js to v24 #1895

chore(deps): update node.js to v24

chore(deps): update node.js to v24 #1895

Workflow file for this run

name: Node CI
on:
push:
branches: [master, beta]
tags:
- "v*"
pull_request:
branches: [master, beta]
permissions:
contents: read
packages: write
id-token: write
jobs:
test_no_xsel:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install -g npm
npm ci
npm run build --if-present
npm test
env:
CI: true
NODE_ENV: test
# - name: shell test
# run: |
# npm link
# ./__tests__/shell.test.sh
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# timeout-minutes: 5
# with:
# limit-access-to-actor: true
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- name: Install xsel
run: sudo apt-get install xsel xvfb
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install -g npm
npm ci
npm run build --if-present
xvfb-run npm test
env:
CI: true
NODE_ENV: test
release:
name: semantic-release
needs: [test, test_no_xsel]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
npm install -g npm
npm ci
- id: semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}