Skip to content

Commit 53bbf49

Browse files
- Add env for the nx publish per AI
1 parent d247616 commit 53bbf49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ jobs:
4444
echo "NPM_TAG=${NPM_TAG_VALUE}" >> $GITHUB_ENV
4545
echo "Determined NPM_TAG: ${NPM_TAG_VALUE}"
4646
- run: npx nx release publish --tag=$NPM_TAG --provenance
47+
env:
48+
# This ensures the npm CLI knows which registry to authenticate against using OIDC
49+
NPM_CONFIG_REGISTRY: "https://registry.npmjs.org/"
50+
# If using Nx, it also needs the GitHub token for the release side
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)