Skip to content

Commit f8d9cab

Browse files
odedha-drclaude
andcommitted
ci: use NPM_TOKEN for publish, add publishConfig for public access
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9c95871 commit f8d9cab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
VERSION=$(node -p "require('./package.json').version")
3939
echo "VERSION=$VERSION" >> $GITHUB_ENV
4040
- name: Publish to npm
41-
run: npm publish --provenance
42-
41+
run: npm publish --provenance
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4344
- name: Push version bump
4445
run: |
4546
git add package.json package-lock.json

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
],
3030
"author": "Oded Har-Tal",
3131
"license": "MIT",
32+
"publishConfig": {
33+
"access": "public"
34+
},
3235
"repository": {
3336
"type": "git",
3437
"url": "https://github.com/odedha-dr/claude-watch.git"

0 commit comments

Comments
 (0)