Skip to content

Commit 02ba78b

Browse files
committed
fix: relase npm
1 parent 448599b commit 02ba78b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/publish-affine-reader.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
node-version: 20.x
3535
cache: "pnpm"
36+
registry-url: 'https://registry.npmjs.org'
3637

3738
- name: Install dependencies
3839
run: pnpm install --frozen-lockfile
@@ -51,12 +52,10 @@ jobs:
5152
git add packages/affine-reader/package.json
5253
git commit -m "chore(release): affine-reader@${{ inputs.version }}"
5354
54-
- name: Setup .npmrc file
55-
run: |
56-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
57-
5855
- name: Publish to npm
5956
working-directory: ./packages/affine-reader
57+
env:
58+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6059
run: |
6160
if [ "${{ inputs.dry-run }}" = "true" ]; then
6261
pnpm publish . --no-git-checks --dry-run

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tsx": "^4.19.3"
66
},
77
"scripts": {
8-
"dev": "pnpm --dir playground dev",
9-
"postinstall": "pnpm --dir packages/affine-reader build"
8+
"prepare": "pnpm --dir packages/affine-reader build",
9+
"dev": "pnpm --dir playground dev"
1010
}
1111
}

0 commit comments

Comments
 (0)