Skip to content

Commit 56a297a

Browse files
authored
Merge pull request #42 from veghdev/rel
workflow: fix release
2 parents 9fcb5f8 + 69cf21d commit 56a297a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525

2626
- name: Publish package
2727
run: |
28-
echo -e "registry=https://registry.npmjs.org/\nhttps://registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > .npmrc
28+
npm config set registry=https://registry.npmjs.org/
29+
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2930
npm publish
3031
env:
3132
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }}
@@ -35,4 +36,4 @@ jobs:
3536
run: |
3637
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
3738
gh release upload ${{ github.event.release.tag_name }} build/*tgz --clobber
38-
if: ( github.event_name == 'release' && github.event.action == 'published' ) || github.event_name == 'workflow_dispatch'
39+
if: ( github.event_name == 'release' && github.event.action == 'published' ) || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)