diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19c4df5..5f56299 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,9 @@ name: Release # Publishes @codemancers/sheets to npm when a GitHub release is published. -# npm trusts this workflow (trusted publishing), so there's no npm token. +# npm trusts this workflow (trusted publishing), so there's no npm token. The +# trusted publisher on npmjs.com must allow `npm publish`: npm sets new ones to +# allow only `npm stage publish`, and `npm publish` then fails with E403. on: release: types: [published] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0d5a0d2..ed681cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,4 +64,4 @@ Maintainers release from `main`: 1. In a pull request, bump `version` in `packages/sheets/package.json`. Until 1.0, a breaking change bumps the minor version, and anything else bumps the patch version. 2. Once it's merged, publish a GitHub release for that version: `gh release create v0.2.0 --generate-notes`. -3. The [Release workflow](.github/workflows/release.yml) checks that the tag matches the version, then tests, builds and publishes the package to npm. npm trusts that workflow through [trusted publishing](https://docs.npmjs.com/trusted-publishers), so there's no npm token to store or rotate. +3. The [Release workflow](.github/workflows/release.yml) checks that the tag matches the version, then tests, builds and publishes the package to npm. npm trusts that workflow through [trusted publishing](https://docs.npmjs.com/trusted-publishers), so there's no npm token to store or rotate. The trusted publisher, in the package's settings on npmjs.com, must allow `npm publish` under Allowed actions. npm sets new ones to allow only `npm stage publish`, and the publish then fails with `E403 OIDC permission denied`. diff --git a/packages/sheets/package.json b/packages/sheets/package.json index 4b0f056..7ff7413 100644 --- a/packages/sheets/package.json +++ b/packages/sheets/package.json @@ -1,6 +1,6 @@ { "name": "@codemancers/sheets", - "version": "0.2.0", + "version": "0.2.1", "description": "Spreadsheet-style data grid for React: headless hooks on TanStack Table, plus Tailwind v4 components.", "license": "MIT", "repository": {