Skip to content

Commit 02f4e55

Browse files
committed
Prepare for release
1 parent 4e2f9e1 commit 02f4e55

File tree

6 files changed

+56
-18
lines changed

6 files changed

+56
-18
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -432,20 +432,23 @@ jobs:
432432
run: ls -R ./npm
433433
shell: bash
434434
- name: Publish
435-
if: contains(github.ref, 'main')
436-
run: |
437-
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
438-
npm config set scope "@platformatic"
439-
# npm config set provenance true
440-
if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
441-
then
442-
npm publish --access public --dry-run
443-
elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
444-
then
445-
npm publish --tag next --access public --dry-run
446-
else
447-
echo "Not a release, skipping publish"
448-
fi
435+
run: npm publish
449436
env:
450437
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
451438
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
439+
# - name: Publish
440+
# if: contains(github.ref, 'main')
441+
# run: |
442+
# npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
443+
# if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
444+
# then
445+
# npm publish
446+
# elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
447+
# then
448+
# npm publish
449+
# else
450+
# echo "Not a release, skipping publish"
451+
# fi
452+
# env:
453+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
454+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

npm/darwin-arm64/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111
"files": [
1212
"python-node.darwin-arm64.node"
1313
],
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org/",
16+
"access": "restricted",
17+
"scope": "@platformatic",
18+
"provenance": false,
19+
"dryRun": true
20+
},
1421
"license": "MIT",
1522
"engines": {
1623
"node": ">= 10"
1724
}
18-
}
25+
}

npm/darwin-x64/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111
"files": [
1212
"python-node.darwin-x64.node"
1313
],
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org/",
16+
"access": "restricted",
17+
"scope": "@platformatic",
18+
"provenance": false,
19+
"dryRun": true
20+
},
1421
"license": "MIT",
1522
"engines": {
1623
"node": ">= 10"
1724
}
18-
}
25+
}

npm/linux-arm64-gnu/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
"scripts": {
1717
"postinstall": "node fix-python-soname.js"
1818
},
19+
"publishConfig": {
20+
"registry": "https://registry.npmjs.org/",
21+
"access": "restricted",
22+
"scope": "@platformatic",
23+
"provenance": false,
24+
"dryRun": true
25+
},
1926
"license": "MIT",
2027
"engines": {
2128
"node": ">= 10"

npm/linux-x64-gnu/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@
1616
"scripts": {
1717
"postinstall": "node fix-python-soname.js"
1818
},
19+
"publishConfig": {
20+
"registry": "https://registry.npmjs.org/",
21+
"access": "restricted",
22+
"scope": "@platformatic",
23+
"provenance": false,
24+
"dryRun": true
25+
},
1926
"license": "MIT",
2027
"engines": {
2128
"node": ">= 10"
2229
},
2330
"libc": [
2431
"glibc"
2532
]
26-
}
33+
}

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@platformatic/python-node",
33
"description": "Run ASGI-compatible Python apps in Node.js",
44
"private": true,
5-
"version": "0.0.0",
5+
"version": "0.1.0",
66
"main": "index.js",
77
"types": "index.d.ts",
88
"napi": {
@@ -13,6 +13,13 @@
1313
"x86_64-unknown-linux-gnu"
1414
]
1515
},
16+
"publishConfig": {
17+
"registry": "https://registry.npmjs.org/",
18+
"access": "restricted",
19+
"scope": "@platformatic",
20+
"provenance": false,
21+
"dryRun": true
22+
},
1623
"license": "MIT",
1724
"devDependencies": {
1825
"@napi-rs/cli": "^3.0.4",

0 commit comments

Comments
 (0)