Skip to content

Commit 0c32b1c

Browse files
authored
chore: create .npmrc (#495)
1 parent c78a0a3 commit 0c32b1c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
registry-url: "https://registry.npmjs.org"
1919
- name: Install dependencies
2020
run: npm ci --ignore-scripts && npm run patch-package
21+
- name: Creating .npmrc
22+
run: |
23+
cat << EOF > "$HOME/.npmrc"
24+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
25+
EOF
26+
env:
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2128
- name: Release
2229
id: changesets
2330
uses: changesets/action@v1
@@ -28,4 +35,3 @@ jobs:
2835
title: "[ci] release"
2936
env:
3037
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)