Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: {} # NOTE: worktree would be a temporal merge commit | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- run: npm ci | |
- run: npm run build:prebuildify-cross | |
- run: find prebuilds | |
- run: rm -v binding.gyp # publishing it causes npm to try node-gyp. BUT it is required to build:prebuildify-cross. | |
- uses: JS-DevTools/npm-publish@v2 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
dry-run: ${{ github.event_name != 'push' }} |