diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a450be6..43bb420 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: Build -on: [push, pull_request] +on: + push: + branches: '*' + workflow_dispatch: jobs: build: @@ -11,11 +14,11 @@ jobs: os: [macos-latest, ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 19 - - name: install dependencies - run: npm install - - name: build - run: npm run make + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 19 + - name: install dependencies + run: npm ci + - name: build + run: npm run make diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce01de0..97e1b21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,9 @@ name: Release on: - push: - tags: - - 'v*' + release: + types: + - prereleased + - released jobs: release: @@ -13,13 +14,13 @@ jobs: os: [macos-latest, ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 19 - - name: install dependencies - run: npm install - - name: publish - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run publish + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 19 + - name: install dependencies + run: npm ci + - name: publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run publish