Skip to content

Commit bc01c15

Browse files
committed
Another try
1 parent d41e623 commit bc01c15

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,19 @@ jobs:
2323
- name: Install dependencies
2424
run: rm package-lock.json && npm install
2525

26+
- name: Creating .npmrc
27+
run: |
28+
cat << EOF > "$HOME/.npmrc"
29+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
30+
EOF
31+
env:
32+
HOME: ${{ github.workspace }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
2635
- name: Create Release Pull Request or Publish to github
2736
uses: changesets/action@v1
2837
with:
2938
# This also does a build
3039
publish: npm run release
3140
env:
3241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)