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.
2 parents e143f1b + fdeddea commit eef84e3Copy full SHA for eef84e3
1 file changed
.github/workflows/release.yml
@@ -40,9 +40,16 @@ jobs:
40
- name: Build packages
41
run: pnpm run build
42
43
+ - name: Ensure NPM token is present
44
+ run: |
45
+ test -n "${NPM_TOKEN}" || { echo "::error::NPM_TOKEN secret is missing or empty"; exit 1; }
46
+ env:
47
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48
+
49
- name: Authenticate to npm
50
run: |
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
51
+ npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
52
+ npm config set @create-markdown:registry https://registry.npmjs.org/
53
env:
54
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55
@@ -57,3 +64,4 @@ jobs:
57
64
58
65
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59
66
67
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments