Skip to content
Open
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
26 changes: 23 additions & 3 deletions .github/workflows/node-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ permissions:
on:
push:
tags:
- v*
# Node releases use a dedicated `node-v*` tag (e.g. `node-v0.23.1`)
# so we can re-cut the npm publish without colliding with the
# `v*` tag already consumed by the python / rust release workflows
# (which create a GitHub Release that `napi prepublish` would
# otherwise try to recreate -> 422 already_exists).
- node-v*

jobs:
build:
Expand Down Expand Up @@ -219,9 +224,24 @@ jobs:
working-directory: ./bindings/node
run: ls -R ./npm
shell: bash
- name: Publish
- name: Publish per-platform packages
# napi prepublish stamps each `npm/<triple>/package.json` with the
# parent version + writes `optionalDependencies` on the parent,
# then runs `npm publish` from each `npm/<triple>/` dir.
# `--no-gh-release` skips the `POST /repos/.../releases` call —
# we trigger this workflow on `node-v*` tags, but the package
# version may correspond to a `v*` tag that the python/rust
# release already published, so re-creating it would 422.
working-directory: ./bindings/node
run: npm publish --access public --provenance
run: npx napi prepublish -t npm --no-gh-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish parent package
# `--ignore-scripts` skips the `prepublishOnly` hook — it would
# re-run `napi prepublish` which we just executed above.
working-directory: ./bindings/node
run: npm publish --ignore-scripts --access public --provenance
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion bindings/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Nicolas Patry <nicolas@huggingface.co>"]
edition = "2021"
name = "node"
version = "0.22.3-dev.0"
version = "0.23.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 0 additions & 3 deletions bindings/node/npm/android-arm-eabi/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions bindings/node/npm/android-arm-eabi/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/android-arm64/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions bindings/node/npm/android-arm64/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/darwin-arm64/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions bindings/node/npm/darwin-arm64/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/darwin-x64/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions bindings/node/npm/darwin-x64/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/freebsd-x64/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions bindings/node/npm/freebsd-x64/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/linux-arm-gnueabihf/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions bindings/node/npm/linux-arm-gnueabihf/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/linux-arm64-gnu/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions bindings/node/npm/linux-arm64-gnu/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/linux-arm64-musl/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions bindings/node/npm/linux-arm64-musl/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/node/npm/linux-x64-gnu/README.md

This file was deleted.

Loading
Loading