Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: read
id-token: write # Required for OIDC

jobs:
prePublishPackageTest:
Expand All @@ -20,14 +21,14 @@ jobs:
uses: actions/cache@v5
with:
path: ~/.npm
key: npm-no-lock-v1-${{ runner.os }}-node22-${{ hashFiles('package.json') }}
key: npm-no-lock-v1-${{ runner.os }}-node24-${{ hashFiles('package.json') }}
restore-keys: |
npm-no-lock-v1-${{ runner.os }}-node22-
npm-no-lock-v1-${{ runner.os }}-node24-

- name: Install Node.js and npm
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x
package-manager-cache: false
registry-url: https://registry.npmjs.org

Expand Down Expand Up @@ -74,13 +75,9 @@ jobs:
- name: Install Node.js and npm
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x
package-manager-cache: false
registry-url: https://registry.npmjs.org

- name: Publish new version
# Note: Setting NODE_AUTH_TOKEN as job|workspace wide env var won't work
# as it appears actions/setup-node sets own value
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish ./*.tgz --access public --tag=latest