Skip to content

Commit 6cb0b92

Browse files
committed
Prepare for release
1 parent 4e2f9e1 commit 6cb0b92

File tree

6 files changed

+75
-28
lines changed

6 files changed

+75
-28
lines changed

.github/workflows/CI.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -387,17 +387,26 @@ jobs:
387387
publish:
388388
name: Publish
389389
runs-on: ubuntu-latest
390+
environment: npm
391+
# if: ${{ contains(github.ref, 'main') }}
390392
needs:
391-
- test-macOS-windows-binding
392-
- test-linux-binding
393+
- build
394+
# - test-macOS-windows-binding
395+
# - test-linux-binding
393396
steps:
394397
- uses: actions/checkout@v4
398+
- uses: webfactory/ssh-agent@v0.9.0
399+
with:
400+
ssh-private-key: |
401+
${{ secrets.HTTP_HANDLER_ACCESS_TOKEN }}
402+
${{ secrets.HTTP_REWRITER_ACCESS_TOKEN }}
395403
- uses: pnpm/action-setup@v4
396404
with:
397405
version: latest
398406
- uses: actions/setup-node@v4
399407
with:
400408
node-version: 20
409+
registry-url: 'https://registry.npmjs.org'
401410
cache: pnpm
402411
- name: Install dependencies
403412
run: pnpm install
@@ -432,20 +441,23 @@ jobs:
432441
run: ls -R ./npm
433442
shell: bash
434443
- 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
444+
run: npm publish --dry-run
449445
env:
450446
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
451447
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
448+
# - name: Publish
449+
# if: contains(github.ref, 'main')
450+
# run: |
451+
# npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
452+
# if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
453+
# then
454+
# npm publish
455+
# elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
456+
# then
457+
# npm publish
458+
# else
459+
# echo "Not a release, skipping publish"
460+
# fi
461+
# env:
462+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
463+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

npm/darwin-arm64/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "python-node-darwin-arm64",
3-
"version": "0.0.0",
2+
"name": "@platformatic/python-node-darwin-arm64",
3+
"version": "0.0.1",
44
"os": [
55
"darwin"
66
],
@@ -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: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "python-node-darwin-x64",
3-
"version": "0.0.0",
2+
"name": "@platformatic/python-node-darwin-x64",
3+
"version": "0.0.1",
44
"os": [
55
"darwin"
66
],
@@ -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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "python-node-linux-arm64-gnu",
3-
"version": "0.0.0",
2+
"name": "@platformatic/python-node-linux-arm64-gnu",
3+
"version": "0.0.1",
44
"os": [
55
"linux"
66
],
@@ -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: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "python-node-linux-x64-gnu",
3-
"version": "0.0.0",
2+
"name": "@platformatic/python-node-linux-x64-gnu",
3+
"version": "0.0.1",
44
"os": [
55
"linux"
66
],
@@ -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)