Skip to content

Commit efca8e8

Browse files
MrTravisBclaude
andauthored
Remove npm token from publish workflow (#2)
* Remove npm token from publish workflow Use npm trusted publishing instead of token-based authentication. The workflow already has id-token: write permission and --provenance flag which enables OIDC-based trusted publishing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Set version to 0.0.0 and use release tag for npm publish The package.json version is now set to 0.0.0 in the repository. The publish workflow extracts the version from the GitHub release tag and applies it before publishing to npm. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 1e63b6b commit efca8e8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ jobs:
6262
ls -la dist/esm/
6363
ls -la dist/types/
6464
65+
- name: Set version from release tag
66+
run: |
67+
# Extract version from release tag (e.g., v1.2.3 -> 1.2.3)
68+
VERSION=${GITHUB_REF#refs/tags/v}
69+
echo "Setting version to $VERSION"
70+
npm version $VERSION --no-git-tag-version
71+
6572
- name: Publish to npm
6673
run: npm publish --provenance --access public
67-
env:
68-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tabstack/sdk",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"description": "TypeScript/JavaScript SDK for TABStack AI - Extract, Generate, and Automate web content",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

0 commit comments

Comments
 (0)