Skip to content

Commit 0ec47b5

Browse files
committed
fix: npm release
1 parent e62b94f commit 0ec47b5

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/setup-go@v5
1818
with:
1919
go-version: 1.25.5
20+
- run: npm install -g npm@latest
2021
- uses: ./.github/actions/build-release-notes
2122
- uses: actions/setup-node@v4
2223
with:
@@ -144,4 +145,5 @@ jobs:
144145
- name: Publish
145146
run: task publish-npm-package VERSION=${GITHUB_REF##*/v}
146147
env:
147-
CGO_ENABLED: 0
148+
CGO_ENABLED: 0
149+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tasks:
4747
dir: npm
4848
cmds:
4949
- npm version {{.VERSION}}
50-
- npm publish
50+
- npm publish --provenance
5151
npm-build-windows:
5252
cmds:
5353
- go build -o ./npm/dist/mokapi-windows-amd64/mokapi.exe -ldflags="-X mokapi/version.BuildVersion={{.VERSION}}" ./cmd/mokapi

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "https://mokapi.io",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/marle3003/mokapi.git"
8+
"url": "git+https://github.com/marle3003/mokapi.git"
99
},
1010
"bin": {
1111
"mokapi": "bin/mokapi.js"

0 commit comments

Comments
 (0)