Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,17 +387,24 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment: npm
needs:
- test-macOS-windows-binding
- test-linux-binding
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.HTTP_HANDLER_ACCESS_TOKEN }}
${{ secrets.HTTP_REWRITER_ACCESS_TOKEN }}
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- name: Install dependencies
run: pnpm install
Expand Down Expand Up @@ -431,18 +438,18 @@ jobs:
- name: List packages
run: ls -R ./npm
shell: bash
- name: Pack
if: ${{ !contains(github.ref, 'main') }}
run: npm pack
- name: Publish
if: contains(github.ref, 'main')
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm config set scope "@platformatic"
# npm config set provenance true
if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
then
npm publish --access public --dry-run
npm publish
elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
then
npm publish --tag next --access public --dry-run
npm publish
else
echo "Not a release, skipping publish"
fi
Expand Down
9 changes: 8 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@ rustfmt.toml
yarn.lock
*.node
.yarn
__test__
src
test
renovate.json
fix-python-soname
artifacts
build.rs
rust-toolchain.toml
CLAUDE.md
Cargo.toml
11 changes: 8 additions & 3 deletions npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "python-node-darwin-arm64",
"version": "0.0.0",
"name": "@platformatic/python-node-darwin-arm64",
"version": "0.0.1",
"os": [
"darwin"
],
Expand All @@ -11,8 +11,13 @@
"files": [
"python-node.darwin-arm64.node"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "restricted",
"scope": "@platformatic"
},
"license": "MIT",
"engines": {
"node": ">= 10"
}
}
}
11 changes: 8 additions & 3 deletions npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "python-node-darwin-x64",
"version": "0.0.0",
"name": "@platformatic/python-node-darwin-x64",
"version": "0.0.1",
"os": [
"darwin"
],
Expand All @@ -11,8 +11,13 @@
"files": [
"python-node.darwin-x64.node"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "restricted",
"scope": "@platformatic"
},
"license": "MIT",
"engines": {
"node": ">= 10"
}
}
}
9 changes: 7 additions & 2 deletions npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "python-node-linux-arm64-gnu",
"version": "0.0.0",
"name": "@platformatic/python-node-linux-arm64-gnu",
"version": "0.0.1",
"os": [
"linux"
],
Expand All @@ -16,6 +16,11 @@
"scripts": {
"postinstall": "node fix-python-soname.js"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "restricted",
"scope": "@platformatic"
},
"license": "MIT",
"engines": {
"node": ">= 10"
Expand Down
11 changes: 8 additions & 3 deletions npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "python-node-linux-x64-gnu",
"version": "0.0.0",
"name": "@platformatic/python-node-linux-x64-gnu",
"version": "0.0.1",
"os": [
"linux"
],
Expand All @@ -16,11 +16,16 @@
"scripts": {
"postinstall": "node fix-python-soname.js"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "restricted",
"scope": "@platformatic"
},
"license": "MIT",
"engines": {
"node": ">= 10"
},
"libc": [
"glibc"
]
}
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@platformatic/python-node",
"description": "Run ASGI-compatible Python apps in Node.js",
"private": true,
"version": "0.0.0",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand All @@ -13,6 +13,11 @@
"x86_64-unknown-linux-gnu"
]
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "restricted",
"scope": "@platformatic"
},
"license": "MIT",
"devDependencies": {
"@napi-rs/cli": "^3.0.4",
Expand Down
Loading