Skip to content

Commit 22c6b12

Browse files
committed
Update publish action to use npm registry
1 parent c7a571a commit 22c6b12

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/setup-node@v4
3131
with:
3232
node-version: '20.x'
33-
registry-url: 'https://npm.pkg.github.com'
33+
registry-url: 'https://registry.npmjs.org'
3434
# Defaults to the user or organization that owns the workflow file
3535
# scope: '@pufferfinance'
3636

@@ -42,14 +42,14 @@ jobs:
4242

4343
- name: Setup git
4444
run: |
45-
git config --global user.name "github-actions[bot]"
46-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
45+
git config user.name "${GITHUB_ACTOR}"
46+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
4747
4848
- name: Build
4949
run: pnpm build
5050

5151
- name: Publish package
5252
run: pnpm release --increment ${{ inputs.increment }}
5353
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
"files": [
2121
"dist"
2222
],
23-
"publishConfig": {
24-
"access": "restricted",
25-
"registry": "https://npm.pkg.github.com"
26-
},
2723
"scripts": {
2824
"build": "vite build",
2925
"dev": "pnpm build --watch",

0 commit comments

Comments
 (0)