Skip to content

Commit 3acde11

Browse files
authored
Create required npmrc file upon publishing packages (#981)
1 parent 4e2aa20 commit 3acde11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
registry-url: https://registry.npmjs.org/
2121
- name: Install dependencies
2222
run: yarn
23+
- name: Creating .npmrc
24+
run: |
25+
cat << EOF > "$HOME/.npmrc"
26+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
27+
EOF
28+
env:
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2330
- name: Create Release Pull Request or Publish to npm
2431
uses: changesets/action@v1
2532
with:

0 commit comments

Comments
 (0)