Skip to content
Open
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
9 changes: 8 additions & 1 deletion .github/workflows/node-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches: [ main ]
workflow_dispatch:

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

jobs:
ci_checks:
name: Build checks
Expand Down Expand Up @@ -39,6 +43,10 @@ jobs:
cache-dependency-path: bindings/node/package-lock.json
registry-url: https://registry.npmjs.org/

# anchor to the smallest npm version supporting trusted publishing
- name: Update npm
run: npm install -g [email protected]

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand All @@ -65,4 +73,3 @@ jobs:
env:
NPM_CONFIG_DRY_RUN: ${{ ( github.ref == 'refs/heads/main' || needs.ci_checks.outputs.publish_release == 'true' ) && 'false' || 'true' }}
NPM_PUBLISH_TAG: ${{ ( needs.ci_checks.outputs.publish_release == 'true' ) && 'next' || 'next-unstable' }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}