Skip to content

Commit 300363a

Browse files
committed
v0.1.0 (#5)
1 parent 4e2f9e1 commit 300363a

File tree

7 files changed

+59
-21
lines changed

7 files changed

+59
-21
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff 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,21 +438,20 @@ jobs:
431438
- name: List packages
432439
run: ls -R ./npm
433440
shell: bash
441+
- name: Update npm
442+
run: npm install -g npm@latest
443+
- name: Pack
444+
if: ${{ !contains(github.ref, 'main') }}
445+
run: npm pack
434446
- name: Publish
435447
if: contains(github.ref, 'main')
436448
run: |
437-
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
438-
npm config set scope "@platformatic"
439-
# npm config set provenance true
440449
if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
441450
then
442-
npm publish --access public --dry-run
451+
npm publish
443452
elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
444453
then
445-
npm publish --tag next --access public --dry-run
454+
npm publish
446455
else
447456
echo "Not a release, skipping publish"
448457
fi
449-
env:
450-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
451-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ rustfmt.toml
99
yarn.lock
1010
*.node
1111
.yarn
12-
__test__
12+
src
13+
test
1314
renovate.json
15+
fix-python-soname
16+
artifacts
17+
build.rs
18+
rust-toolchain.toml
19+
CLAUDE.md
20+
Cargo.toml

npm/darwin-arm64/package.json

Lines changed: 8 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,13 @@
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+
}

npm/darwin-x64/package.json

Lines changed: 8 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,13 @@
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+
}

npm/linux-arm64-gnu/package.json

Lines changed: 7 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,11 @@
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"

npm/linux-x64-gnu/package.json

Lines changed: 8 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,16 @@
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+
}

package.json

Lines changed: 6 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,11 @@
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",

0 commit comments

Comments
 (0)