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
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
packages: write
pull-requests: write
issues: write

# OIDC
id-token: write
env:
# Force npm to emit provenance (SLSA) when publishing via OIDC.
NPM_CONFIG_PROVENANCE: true

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -57,7 +62,10 @@ jobs:
run: |
corepack enable
corepack prepare [email protected] --activate


- name: Ensure npm 11.5.1+ for trusted publishing
run: npm install -g npm@^11.5.1

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -109,7 +117,6 @@ jobs:
run: ${{ steps.release_cmd.outputs.cmd }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}

- name: Upload npm logs on failure
if: failure()
Expand Down