Skip to content

Commit

Permalink
fix: Publish scripts to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Jun 30, 2024
1 parent bcdd423 commit 1cfe31a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: pnpm run build:scripts

- name: Build Projects
run: pnpm run build
run: pnpm run build --filter=vitnode-backend --filter=vitnode-shared --filter=vitnode-frontend

- name: Run script to bump version
run: pnpm run release
Expand Down Expand Up @@ -86,6 +86,6 @@ jobs:

- name: Publish stable
if: github.event.inputs.release == 'stable'
run: pnpm publish --provenance --access public --workspace vitnode-backend --workspace vitnode-frontend --workspace vitnode-shared --workspace create-vitnode-app --workspace eslint-config-vitnode
run: npm publish --provenance --access public --workspace vitnode-backend --workspace vitnode-frontend --workspace vitnode-shared --workspace create-vitnode-app --workspace eslint-config-vitnode
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"directory": "packages/backend"
},
"bin": {
"vitnode-backend": "./dist/scripts/setup.js"
"vitnode-backend": "dist/scripts/setup.js"
},
"scripts": {
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"directory": "packages/frontend"
},
"bin": {
"vitnode-frontend": "./dist/scripts/setup.js"
"vitnode-frontend": "dist/scripts/setup.js"
},
"exports": {
"./middleware": {
Expand Down

0 comments on commit 1cfe31a

Please sign in to comment.