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
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -51,13 +52,16 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "24"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
working-directory: cli/reins
run: bun install

- name: Verify npm version for trusted publishing
run: npm --version

- name: Check if publish is needed
id: check
working-directory: cli/reins
Expand All @@ -80,8 +84,6 @@ jobs:
if: steps.check.outputs.should_publish == 'true'
working-directory: cli/reins
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub Release
if: steps.check.outputs.should_publish == 'true'
Expand Down
2 changes: 1 addition & 1 deletion docs/design-docs/ci-enforcement-and-risk-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ It now uses explicit regex patterns for gates like `lint`, `test`, and `typechec
- CLI projects can satisfy the legibility observability signal with strong diagnosability evidence instead of irrelevant service observability infrastructure.
- Lint baseline has been reduced and now passes cleanly in local checks; CI lint remains advisory until the workflow flips the gate to blocking.
- Merges to master only publish when the merged PR already includes a new package version.
- Requires `NPM_TOKEN` secret in GitHub repo settings for npm authentication.
- Requires npm Trusted Publisher configuration for this GitHub repository/workflow (OIDC), not a long-lived `NPM_TOKEN`.
- Fork PRs may still require maintainer follow-up for version bump commits.