Skip to content

Commit 0946992

Browse files
committed
update publish script
1 parent b249684 commit 0946992

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 12
15-
- run: npm install
16-
- run: npm test
17-
- uses: JS-DevTools/npm-publish@v1
18-
with:
19-
token: ${{ secrets.NPM_TOKEN }}
15+
registry-url: https://registry.npmjs.org/
16+
- run: yarn install
17+
- run: |
18+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
19+
npm publish --access public
20+
env:
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)