name: Test and Prebuild on: [push] jobs: build: if: startsWith(github.ref, 'refs/tags/') runs-on: macos-11 steps: - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v2 with: node-version: 12 - run: npm install - run: npm run prebuild - run: zip -r prebuild-darwin.zip prebuilds - run: hexdump "prebuilds/darwin-x64/node.abi93.node" | head -10 - name: Prebuild uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: prebuild-darwin.zip