Skip to content

Commit

Permalink
chore(ci): deploy to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Dec 13, 2024
1 parent 91800df commit e25c16b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Release
on:
push:

jobs:
publish-github-registry:
runs-on: ubuntu-latest
Expand All @@ -11,11 +10,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com/
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn push
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
permissions:
contents: read
packages: write
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build:watch": "npx tsc -w",
"build:dev": "npx tsc && yarn copy-assets",
"build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json",
"push": "yarn test && yarn build:prod && yarn publish",
"push": "yarn test && yarn build:prod && yarn publish --access public",
"run:examples:file": "node ./dist/examples/express-file-server/index.js"
},
"bugs": {
Expand Down

0 comments on commit e25c16b

Please sign in to comment.