Skip to content

Commit b3553d5

Browse files
committed
Use setup-node action instead of publishConfig
1 parent d3419c6 commit b3553d5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ jobs:
4242
- uses: actions/setup-node@v1
4343
with:
4444
node-version: '12'
45+
registry-url: 'https://registry.npmjs.org'
4546
- name: install
4647
run: npm ci
4748
- name: build
4849
run: npm run build
4950
- name: publish production
5051
run: npm publish
5152
env:
52-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
"unist-util-visit": "^1.4.1",
6464
"vscode-textmate": "4.2.2"
6565
},
66-
"publishConfig": {
67-
"registry": "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
68-
},
6966
"jest": {
7067
"coveragePathIgnorePatterns": [
7168
"lib"

0 commit comments

Comments
 (0)