Skip to content

Commit a523c71

Browse files
rsbhclaude
andauthored
fix: switch to bun publish and add files field to fix npm release (#17)
- Replace npm publish with bun publish using NPM_CONFIG_TOKEN - Add files field to package.json to scope published contents - Remove unnecessary .npmrc creation step Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ad5b7f9 commit a523c71

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,10 @@ jobs:
3232
VERSION="${GITHUB_REF_NAME#v}"
3333
npm version "$VERSION" --no-git-tag-version --allow-same-version
3434
35-
- name: Create .npmrc
36-
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > "$HOME/.npmrc"
37-
env:
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
4035
- name: Publish
41-
run: npm publish --access public
36+
run: bun publish --access public
4237
env:
43-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
4439

4540
docker-release:
4641
name: Publish to Docker Hub

packages/chronicle/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
"description": "Config-driven documentation framework",
55
"license": "Apache-2.0",
66
"type": "module",
7+
"files": [
8+
"bin",
9+
"dist",
10+
"src",
11+
"templates",
12+
"next.config.mjs",
13+
"source.config.ts"
14+
],
715
"bin": {
816
"chronicle": "./bin/chronicle.js"
917
},

0 commit comments

Comments
 (0)