Skip to content

Commit

Permalink
[test] fix and try github_release
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyiwu committed Jul 21, 2024
1 parent 39460a7 commit 3bdab34
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Publish Pre-built Binaries

#on:
# push:
# tags:
# - 'v*'
on:
workflow_dispatch:
push:
tags:
- 'v*'
pull_request:

jobs:
build:
Expand All @@ -22,14 +26,12 @@ jobs:
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
npm install -g node-pre-gyp-github
node-pre-gyp package
node-pre-gyp-github publish

0 comments on commit 3bdab34

Please sign in to comment.