Skip to content

Commit f755e73

Browse files
authored
Merge pull request #5 from dotmh/fix/publish-action
fix: publish action
2 parents 90b45b4 + 0b12f86 commit f755e73

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/publish-action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ jobs:
1919
node-version: "20.14.0"
2020
cache: "pnpm"
2121
- run: pnpm install
22+
- name: Set publishing config
23+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2226
- name: publish
2327
run: pnpm workspace:publish

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "module",
88
"scripts": {
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"workspace:publish": "pnpm publish -r",
10+
"workspace:publish": "pnpm publish -r --no-git-checks",
1111
"prepare": "husky",
1212
"lint:commit": "commitlint --edit",
1313
"githook:commitMessage": "pnpm lint:commit"

0 commit comments

Comments
 (0)