Skip to content

[test] fix and try github_release #2

[test] fix and try github_release

[test] fix and try github_release #2

name: Publish Pre-built Binaries
#on:
# push:
# tags:
# - 'v*'
on:
workflow_dispatch:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- name: Publish
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}
run: |
npm install -g node-pre-gyp
npm install -g node-pre-gyp-github
node-pre-gyp package
node-pre-gyp-github publish