Skip to content

Commit

Permalink
Merge pull request #506 from perrin4869/chore/automate-prebuilds
Browse files Browse the repository at this point in the history
Automate prebuilds publishing
  • Loading branch information
tdewolff authored Jul 3, 2022
2 parents 3e353dd + 680c418 commit 5ed2a92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,21 @@ jobs:
run: |
npm --prefix bindings/js ci
npm --prefix bindings/js test
npm --prefix bindings/js run prebuildify
- uses: actions/upload-artifact@v3
#if: ...
with:
name: ${{ matrix.os }}.node
path: bindings/js/build/Release/minify.node
path: bindings/js/prebuilds/*/*.node

deploy:
runs-on: ubuntu-latest
needs: [test]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/download-artifact@v2
with:
path: bindings/js/prebuilds
- run: npm publish
2 changes: 1 addition & 1 deletion bindings/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"scripts": {
"install": "node-gyp-build",
"test": "node test.js",
"prebuild": "prebuildify --napi --strip"
"prebuildify": "prebuildify --napi --strip"
},
"homepage": "https://github.com/tdewolff/minify#readme",
"bugs": {
Expand Down

0 comments on commit 5ed2a92

Please sign in to comment.