Skip to content

Commit 1b51f2f

Browse files
RezaulRezaul
authored andcommitted
fix: npm token issues
1 parent f4b1bda commit 1b51f2f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,16 @@ jobs:
155155
env:
156156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
157157

158-
- name: 🚚 Publish to NPM
158+
- name: � Setup NPM Authentication
159+
run: |
160+
mkdir -p ~/.npm
161+
cat > ~/.npmrc << EOF
162+
//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
163+
registry=https://registry.npmjs.org/
164+
EOF
165+
chmod 600 ~/.npmrc
166+
167+
- name: �🚚 Publish to NPM
159168
run: npm publish --access public
160169
env:
161170
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)