Skip to content

Commit

Permalink
Added build as a prepublishOnly step
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-soderman committed Aug 11, 2024
1 parent 949b760 commit 4d041e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"url": "git+https://github.com/nils-soderman/motionbuilder-socket.git"
},
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsup src/index.ts --format cjs,esm --dts --minify --clean",
"lint": "tsc",
"test": "jest"
Expand Down

0 comments on commit 4d041e1

Please sign in to comment.