Skip to content

Commit

Permalink
ci: fix repository of platform npm
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Feb 1, 2025
1 parent d393784 commit a8b09cd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ jobs:
- name: Publish
run: |
npm config set provenance true
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
if git log -1 --pretty=%B | grep "^Release [0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
elif git log -1 --pretty=%B | grep "^Release [0-9]\+\.[0-9]\+\.[0-9]\+";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --tag next --access public
Expand Down
4 changes: 4 additions & 0 deletions npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"arm64"
],
"main": "node-segfault-handler-rs.darwin-arm64.node",
"repository": {
"url": "https://github.com/node-modules/node-segfault-handler-rs",
"directory": "npm/darwin-arm64"
},
"files": [
"node-segfault-handler-rs.darwin-arm64.node"
],
Expand Down
4 changes: 4 additions & 0 deletions npm/darwin-universal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"files": [
"node-segfault-handler-rs.darwin-universal.node"
],
"repository": {
"url": "https://github.com/node-modules/node-segfault-handler-rs",
"directory": "npm/darwin-universal"
},
"license": "MIT",
"engines": {
"node": ">= 10"
Expand Down
4 changes: 4 additions & 0 deletions npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"files": [
"node-segfault-handler-rs.darwin-x64.node"
],
"repository": {
"url": "https://github.com/node-modules/node-segfault-handler-rs",
"directory": "npm/darwin-x64"
},
"license": "MIT",
"engines": {
"node": ">= 10"
Expand Down
4 changes: 4 additions & 0 deletions npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"files": [
"node-segfault-handler-rs.linux-x64-gnu.node"
],
"repository": {
"url": "https://github.com/node-modules/node-segfault-handler-rs",
"directory": "npm/linux-x64-gnu"
},
"license": "MIT",
"engines": {
"node": ">= 10"
Expand Down

0 comments on commit a8b09cd

Please sign in to comment.