File tree Expand file tree Collapse file tree 7 files changed +57
-18
lines changed
Expand file tree Collapse file tree 7 files changed +57
-18
lines changed Original file line number Diff line number Diff line change @@ -387,17 +387,24 @@ jobs:
387387 publish :
388388 name : Publish
389389 runs-on : ubuntu-latest
390+ environment : npm
390391 needs :
391392 - test-macOS-windows-binding
392393 - test-linux-binding
393394 steps :
394395 - uses : actions/checkout@v4
396+ - uses : webfactory/ssh-agent@v0.9.0
397+ with :
398+ ssh-private-key : |
399+ ${{ secrets.HTTP_HANDLER_ACCESS_TOKEN }}
400+ ${{ secrets.HTTP_REWRITER_ACCESS_TOKEN }}
395401 - uses : pnpm/action-setup@v4
396402 with :
397403 version : latest
398404 - uses : actions/setup-node@v4
399405 with :
400406 node-version : 20
407+ registry-url : ' https://registry.npmjs.org'
401408 cache : pnpm
402409 - name : Install dependencies
403410 run : pnpm install
@@ -431,18 +438,18 @@ jobs:
431438 - name : List packages
432439 run : ls -R ./npm
433440 shell : bash
441+ - name : Pack
442+ if : ${{ !contains(github.ref, 'main') }}
443+ run : npm pack
434444 - name : Publish
435445 if : contains(github.ref, 'main')
436446 run : |
437- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
438- npm config set scope "@platformatic"
439- # npm config set provenance true
440447 if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
441448 then
442- npm publish --access public --dry-run
449+ npm publish
443450 elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
444451 then
445- npm publish --tag next --access public --dry-run
452+ npm publish
446453 else
447454 echo "Not a release, skipping publish"
448455 fi
Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ rustfmt.toml
99yarn.lock
1010* .node
1111.yarn
12- __test__
12+ src
13+ test
1314renovate.json
15+ fix-python-soname
16+ artifacts
17+ build.rs
18+ rust-toolchain.toml
19+ CLAUDE.md
20+ Cargo.toml
Original file line number Diff line number Diff line change 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 ],
1111 "files" : [
1212 " python-node.darwin-arm64.node"
1313 ],
14+ "publishConfig" : {
15+ "registry" : " https://registry.npmjs.org/" ,
16+ "access" : " restricted" ,
17+ "scope" : " @platformatic"
18+ },
1419 "license" : " MIT" ,
1520 "engines" : {
1621 "node" : " >= 10"
1722 }
18- }
23+ }
Original file line number Diff line number Diff line change 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 ],
1111 "files" : [
1212 " python-node.darwin-x64.node"
1313 ],
14+ "publishConfig" : {
15+ "registry" : " https://registry.npmjs.org/" ,
16+ "access" : " restricted" ,
17+ "scope" : " @platformatic"
18+ },
1419 "license" : " MIT" ,
1520 "engines" : {
1621 "node" : " >= 10"
1722 }
18- }
23+ }
Original file line number Diff line number Diff line change 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 ],
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+ },
1924 "license" : " MIT" ,
2025 "engines" : {
2126 "node" : " >= 10"
Original file line number Diff line number Diff line change 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 ],
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+ },
1924 "license" : " MIT" ,
2025 "engines" : {
2126 "node" : " >= 10"
2227 },
2328 "libc" : [
2429 " glibc"
2530 ]
26- }
31+ }
Original file line number Diff line number Diff line change 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" : {
1313 " x86_64-unknown-linux-gnu"
1414 ]
1515 },
16+ "publishConfig" : {
17+ "registry" : " https://registry.npmjs.org/" ,
18+ "access" : " restricted" ,
19+ "scope" : " @platformatic"
20+ },
1621 "license" : " MIT" ,
1722 "devDependencies" : {
1823 "@napi-rs/cli" : " ^3.0.4" ,
You can’t perform that action at this time.
0 commit comments