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
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Release

on:
pull_request_target:
types: [closed]
branches: [main]
types: [ closed ]
branches: [ main ]
workflow_dispatch:
# Manual trigger — use when a publish needs to be retried without re-merging
# the release PR (e.g. after a partial failure where tags were already pushed).

# cancel-in-progress: false ensures an in-flight publish is never interrupted.
concurrency:
group: release
Expand Down Expand Up @@ -62,12 +61,14 @@ jobs:
- name: 🔧 Setup Node and install dependencies
uses: ./.github/actions/node-setup-and-install

- name: 🔐 Configure npm registry for OIDC
- name: 🔐 Configure npm registry
run: |
# Write ONLY the registry URL — no _authToken line so that npm uses
# the OIDC token (from id-token: write) instead of a static token.
# Trusted publishing (OIDC) is not configured on npmjs.com for these
# packages, so authenticate with NPM_ACCESS_TOKEN. id-token: write
# still signs the --provenance attestation.
cat >> .npmrc << 'EOF'
registry=https://registry.npmjs.org
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
EOF

- name: 💾 Cache build outputs
Expand All @@ -82,6 +83,8 @@ jobs:
build-${{ runner.os }}-

- name: 📤 Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
run: |
# Build packages first
pnpm nx run-many -t build
Expand Down
Loading