From 13e3596fb7fdd92551880aa46409c8613a84d509 Mon Sep 17 00:00:00 2001 From: Richard Race <1273965+richrace@users.noreply.github.com> Date: Thu, 24 Aug 2023 17:14:55 +0100 Subject: [PATCH 1/2] Update GitHub workflows --- .github/workflows/build.yml | 21 ++++++++++++--------- .github/workflows/release.yml | 27 ++++++++++++++------------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a450be6..af8660e 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 install + - name: build + run: npm run make diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce01de0..0f1b8ea 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 install + - name: publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run publish From 3c96b9854be22c70c33978482044e46b9acfd27d Mon Sep 17 00:00:00 2001 From: Richard Race <1273965+richrace@users.noreply.github.com> Date: Thu, 24 Aug 2023 17:17:41 +0100 Subject: [PATCH 2/2] Use npm ci instead --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af8660e..43bb420 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,6 @@ jobs: with: node-version: 19 - name: install dependencies - run: npm install + run: npm ci - name: build run: npm run make diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f1b8ea..97e1b21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: with: node-version: 19 - name: install dependencies - run: npm install + run: npm ci - name: publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}