Skip to content

Commit 2edf8af

Browse files
sugyanclaude
andauthored
Improve release flow with draft releases and OIDC npm publishing (#272)
* Improve release flow by using draft releases in tagpr - Change tagpr configuration from `release = true` to `release = draft` - This creates draft releases instead of immediately published ones - The release.yml workflow will then publish the release with artifacts - Provides better separation of concerns and safer release process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Migrate npm publishing to OIDC Trusted Publishers - Add id-token: write and contents: read permissions to npm-publish job - Remove NODE_AUTH_TOKEN from both dry-run and publish steps - npm CLI will automatically detect OIDC environment for authentication - Enables automatic provenance attestations for enhanced security - Eliminates need for long-lived NPM_TOKEN secret management Requires manual configuration of Trusted Publisher on npmjs.com: - Organization: sugyan - Repository: claude-code-webui - Workflow: release.yml 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 191c4d1 commit 2edf8af

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ jobs:
135135
npm-publish:
136136
needs: build
137137
runs-on: ubuntu-latest
138+
permissions:
139+
id-token: write # Required for OIDC authentication
140+
contents: read # Required for repository access
138141
steps:
139142
- name: Checkout code
140143
uses: actions/checkout@v4
@@ -177,11 +180,7 @@ jobs:
177180
- name: Publish to npm (dry-run)
178181
run: npm publish --dry-run
179182
working-directory: backend
180-
env:
181-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
182183

183184
- name: Publish to npm
184185
run: npm publish
185186
working-directory: backend
186-
env:
187-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.tagpr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# Use "v" prefix for tags (v1.0.0, v1.0.1, etc.)
1111
vPrefix = false
1212

13-
# Create GitHub Releases automatically
14-
release = true
13+
# Create GitHub Releases automatically as draft
14+
release = draft
1515

1616
# Version file location - now using package.json
1717
versionFile = backend/package.json

0 commit comments

Comments
 (0)