Skip to content

Commit 9a9084a

Browse files
authored
ci: fix repository of platform npm (#3)
1 parent d393784 commit 9a9084a

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ jobs:
189189
- name: Publish
190190
run: |
191191
npm config set provenance true
192-
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
192+
if git log -1 --pretty=%B | grep "^Release [0-9]\+\.[0-9]\+\.[0-9]\+$";
193193
then
194194
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
195195
npm publish --access public
196-
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
196+
elif git log -1 --pretty=%B | grep "^Release [0-9]\+\.[0-9]\+\.[0-9]\+";
197197
then
198198
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
199199
npm publish --tag next --access public

npm/darwin-arm64/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"arm64"
99
],
1010
"main": "node-segfault-handler-rs.darwin-arm64.node",
11+
"repository": {
12+
"url": "https://github.com/node-modules/node-segfault-handler-rs",
13+
"directory": "npm/darwin-arm64"
14+
},
1115
"files": [
1216
"node-segfault-handler-rs.darwin-arm64.node"
1317
],

npm/darwin-universal/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"files": [
99
"node-segfault-handler-rs.darwin-universal.node"
1010
],
11+
"repository": {
12+
"url": "https://github.com/node-modules/node-segfault-handler-rs",
13+
"directory": "npm/darwin-universal"
14+
},
1115
"license": "MIT",
1216
"engines": {
1317
"node": ">= 10"

npm/darwin-x64/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"files": [
1212
"node-segfault-handler-rs.darwin-x64.node"
1313
],
14+
"repository": {
15+
"url": "https://github.com/node-modules/node-segfault-handler-rs",
16+
"directory": "npm/darwin-x64"
17+
},
1418
"license": "MIT",
1519
"engines": {
1620
"node": ">= 10"

npm/linux-x64-gnu/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"files": [
1212
"node-segfault-handler-rs.linux-x64-gnu.node"
1313
],
14+
"repository": {
15+
"url": "https://github.com/node-modules/node-segfault-handler-rs",
16+
"directory": "npm/linux-x64-gnu"
17+
},
1418
"license": "MIT",
1519
"engines": {
1620
"node": ">= 10"

0 commit comments

Comments
 (0)