File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 3636 uses : actions/setup-node@v6
3737 with :
3838 node-version : 22
39- registry-url : ' https://registry.npmjs.org'
4039
4140 - name : Install dependencies & generate types
4241 run : |
5352 cd landscape-types
5453 pnpm pkg set version="$VERSION"
5554
55+ - name : Verify npm token
56+ run : |
57+ if [ -z "$NPM_TOKEN" ]; then
58+ echo "::error::NPM_TOKEN secret is empty!"
59+ exit 1
60+ fi
61+ echo "Token starts with: ${NPM_TOKEN:0:8}..."
62+ env :
63+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
64+
5665 - name : Publish to npm
5766 run : |
58- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
67+ echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
68+ cat ~/.npmrc | head -c 50
69+ echo "..."
70+ npm whoami --registry https://registry.npmjs.org || echo "whoami failed"
5971 pnpm --filter @landscape-router/types publish --no-git-checks --access public
72+ env :
73+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments