Skip to content

Commit

Permalink
ci: build when push tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed Dec 19, 2021
1 parent 5e5cc23 commit e588588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Continuous integration
on:
push:
branches: [ '**' ]
tags: v*.*.*
pull_request:
branches: [ '**' ]
schedule:
Expand All @@ -13,7 +14,6 @@ jobs:
fail-fast: false
matrix:
ci-type: [
{os: "windows-latest", arch: "x86"},
{os: "windows-latest", arch: "x64"},
{os: "macos-latest", arch: "x64"},
{os: "ubuntu-latest", arch: "x64"},
Expand All @@ -36,12 +36,12 @@ jobs:
run: npm i -g npminstall && npminstall

- name: Continuous Integration
run: npm run ci
run: npm run ci || (sleep 60 && npm run ci) || (sleep 60 && npm run ci)

- name: Package Binary
run: npm run pack

- name: Release
- name: Draft Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down

0 comments on commit e588588

Please sign in to comment.