We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9363b commit 8cd4435Copy full SHA for 8cd4435
.github/workflows/release.yml
@@ -79,6 +79,11 @@ jobs:
79
- name: Publish to npm
80
env:
81
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
82
+ NPM_CONFIG_REGISTRY: https://registry.npmjs.org
83
+ NPM_CONFIG_ALWAYS_AUTH: 'true'
84
run: |
85
+ # Force registry + token for both npm and yarn
86
+ printf "registry=https://registry.npmjs.org\n//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}\nalways-auth=true\n" > ~/.npmrc
87
+
88
TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo "$GITHUB_REF_NAME")
- yarn nx release publish --yes --registry https://registry.npmjs.org --tag "$TAG"
89
+ yarn nx release publish --yes --tag "$TAG"
0 commit comments