Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20, 22]
node-version: [20, 22, 24]
zarrita-version: ["0.5", "0.6", "0.7"]

steps:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
- name: Use Node.js 24
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
cache: "npm"
registry-url: https://registry.npmjs.org

Expand All @@ -33,5 +33,3 @@ jobs:

- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 10 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Releasing

Publishing to npm runs in CI (`.github/workflows/publish.yaml`).

1. `npm version <patch|minor|major>` — bumps `package.json`, commits, tags `vX.Y.Z`.
2. `git push --follow-tags`
3. `gh release create vX.Y.Z --generate-notes` — triggers the publish (the tag alone does not).
4. CI installs, tests, builds, and publishes. Verify with `npm view icechunk-js version`.

Manual fallback: `npm ci && npm run build && npm publish --access public`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

With npm OIDC trusted publishing enabled, manual publishing via npm publish may be restricted by npm's security settings (which often require publishing exclusively via CI/provenance). Additionally, manual publishing will not generate the secure build provenance. Consider adding a warning note about this limitation.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "icechunk-js",
"version": "0.5.0",
"description": "Read-only JavaScript/TypeScript reader for Icechunk repositories",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public"
},
Expand Down
Loading