chore(ci): deploy to npm

This commit is contained in:
Elian Doran 2024-12-13 21:11:02 +02:00
parent 91800df82c
commit e25c16b230
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
name: Release
on:
push:
jobs:
publish-github-registry:
runs-on: ubuntu-latest
@ -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

View File

@ -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": {