Skip to content

Commit 1232500

Browse files
authored
ci: Migrate package publishing from GitHub Packages to npmjs.org. (#7)
1 parent 0755397 commit 1232500

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/release.yml

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

3738
- run: pnpm install --frozen-lockfile
3839

@@ -46,9 +47,7 @@ jobs:
4647
exit 1
4748
fi
4849
49-
- name: Publish to GitHub Packages
50-
run: |
51-
pnpm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
52-
pnpm publish --no-git-checks
50+
- name: Publish to npm
51+
run: pnpm publish --no-git-checks --access public
5352
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"publishConfig": {
4949
"access": "public",
50-
"registry": "https://npm.pkg.github.com/"
50+
"registry": "https://registry.npmjs.org/"
5151
},
5252
"devDependencies": {
5353
"@eslint/js": "^9.0.0",

0 commit comments

Comments
 (0)