Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit e25c16b

Browse files
committed
chore(ci): deploy to npm
1 parent 91800df commit e25c16b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Release
22
on:
33
push:
4-
54
jobs:
65
publish-github-registry:
76
runs-on: ubuntu-latest
@@ -11,11 +10,11 @@ jobs:
1110
- uses: actions/setup-node@v4
1211
with:
1312
node-version: 22
14-
registry-url: https://npm.pkg.github.com/
13+
registry-url: 'https://registry.npmjs.org'
1514
- run: yarn install
1615
- run: yarn push
1716
env:
18-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
17+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1918
permissions:
2019
contents: read
2120
packages: write

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:watch": "npx tsc -w",
1515
"build:dev": "npx tsc && yarn copy-assets",
1616
"build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json",
17-
"push": "yarn test && yarn build:prod && yarn publish",
17+
"push": "yarn test && yarn build:prod && yarn publish --access public",
1818
"run:examples:file": "node ./dist/examples/express-file-server/index.js"
1919
},
2020
"bugs": {

0 commit comments

Comments
 (0)