diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 32f71eb..8638283 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -6,11 +6,11 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20.x' + node-version: '24.x' # Enable unprivileged user namespaces for Chrome sandbox # This is required because Ubuntu 23.10+ disables them by default # See: https://github.com/actions/runner-images/issues/9621 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0e00a0..3038abd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,11 +9,12 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + id-token: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 with: - node-version: 14 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm - run: npm ci @@ -21,6 +22,4 @@ jobs: - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.event.release.tag_name }} - - run: npm whoami; npm --ignore-scripts publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + - run: npm --ignore-scripts publish --provenance