Skip to content
Merged
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
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,16 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

# Trusted publishing (OIDC) requires npm CLI >=11.5.1; Node 22's bundled
# npm may be older, so pin explicitly rather than relying on whatever
# setup-node resolves.
- name: Update npm
run: npm install -g npm@^11.5.1

- name: Install dependencies
run: npm ci

Expand All @@ -104,6 +110,10 @@ jobs:
- name: Verify package
run: npm pack --dry-run --workspace=@crewcircle/knowledge

# NPM_TOKEN is a fallback only — once trusted publishing is configured
# for this package on npmjs.com, npm CLI detects the OIDC (id-token)
# environment automatically and uses that instead, with no code change
# needed here.
- name: Publish to npm
run: npm publish --workspace=@crewcircle/knowledge --access public --provenance
env:
Expand All @@ -122,10 +132,16 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

# Trusted publishing (OIDC) requires npm CLI >=11.5.1; Node 22's bundled
# npm may be older, so pin explicitly rather than relying on whatever
# setup-node resolves.
- name: Update npm
run: npm install -g npm@^11.5.1

- name: Install dependencies
run: npm ci

Expand All @@ -135,6 +151,10 @@ jobs:
- name: Verify package
run: npm pack --dry-run --workspace=@crewcircle/docs-gen

# NPM_TOKEN is a fallback only — once trusted publishing is configured
# for this package on npmjs.com, npm CLI detects the OIDC (id-token)
# environment automatically and uses that instead, with no code change
# needed here.
- name: Publish to npm
run: npm publish --workspace=@crewcircle/docs-gen --access public --provenance
env:
Expand Down
Loading