Skip to content

Commit e27ee98

Browse files
authored
chore: fix releasing token (#6882)
1 parent a696a6a commit e27ee98

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/publish.yml

+9
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,20 @@ jobs:
2626
uses: actions/setup-node@v2
2727
with:
2828
node-version: 16.x
29+
registry-url: https://registry.npmjs.org/
2930
cache: "pnpm"
3031

3132
- name: Install deps
3233
run: pnpm install
3334

35+
- name: Creating .npmrc
36+
run: |
37+
cat << EOF > "$HOME/.npmrc"
38+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
39+
EOF
40+
env:
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
3443
- name: Publish package
3544
run: pnpm run ci-publish -- ${{ github.ref_name }}
3645
env:

0 commit comments

Comments
 (0)