Skip to content

Commit

Permalink
[CI] auto release github node-pre-gyp-github
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyiwu committed Jul 21, 2024
1 parent 80f7984 commit 0ee576e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Pre-built Binaries

on:
release:
types: [created]

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 run build
- run: npm test
- name: Publish
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}
run: |
npm install -g node-pre-gyp
node-pre-gyp configure
node-pre-gyp build
node-pre-gyp package
node-pre-gyp-github publish

0 comments on commit 0ee576e

Please sign in to comment.