Skip to content

Commit 5111621

Browse files
committed
fix: use seperated publish
1 parent 83a7c11 commit 5111621

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ jobs:
1313
with:
1414
node-version: '14.x'
1515
registry-url: 'https://registry.npmjs.org'
16-
17-
- uses: ferluisxd/create-npmrc@3
18-
with:
19-
auth_token: ${{ secrets.NPM_TOKEN }}
2016
- run: npm install
2117
- run: npm run test
2218
- name: Semantic Release
2319
run: npm run release
2420
env:
2521
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
- run: npm publish --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.releaserc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
}
2222
}
2323
],
24-
"@semantic-release/npm",
24+
["@semantic-release/npm", {
25+
"npmPublish": false
26+
}],
2527
"@semantic-release/github",
2628
[
2729
"@semantic-release/git",

0 commit comments

Comments
 (0)