Skip to content

Commit

Permalink
use a prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Mar 21, 2023
1 parent f69f4e7 commit b209301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test

codecov:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"www": "webpack --mode=production",
"watch": "webpack --mode=development --watch",
"wwwdist": "zip -j dist/igc-xc-score-web.zip dist/www/*",
"build": "rollup -c && npm run nexe && npm run www && npm run doc",
"prepare": "rollup -c && npm run nexe && npm run www && npm run doc",
"c8": "npx c8 node --no-warnings test/test.js",
"lcov": "npx c8 report --reporter=text-lcov > coverage/tests.lcov",
"codecov": "curl -s https://codecov.io/bash | bash",
"preversion": "npm test",
"version": "npm run build && git add package.json",
"version": "npm run prepare && git add package.json",
"postversion": "git push && git push --tags && npm run upload",
"upload": "npm run wwwdist && gh release create -d -t $npm_package_version --notes '' v$npm_package_version dist/igc-xc-score*"
},
Expand Down

0 comments on commit b209301

Please sign in to comment.