From 4efc092b240d6aaf76675fb0f1ce800cbba8a4d9 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Mon, 30 Mar 2026 21:05:42 -0700 Subject: [PATCH 1/3] Update test workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 416005e..f4999e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,16 +1,24 @@ name: CI -on: [push] +on: + pull_request: + push: + branches: [ 'master' ] jobs: - Build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - - name: Install dependencies - run: npm install - - name: Test - run: npm test + ci: + strategy: + matrix: + os: [ ubuntu-latest, windows-latest, macos-latest ] + node-version: [14, '${{ vars.NODE_VERSION }}' ] + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm install + - name: Test + run: npm test From 28ee8c2129636ad7806438858e8b9d4b95a0f171 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Mon, 30 Mar 2026 21:05:52 -0700 Subject: [PATCH 2/3] Add publication workflow --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b66b300 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish + +on: + release: + types: [created] + workflow_dispatch: + +env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 + with: + node-version: ${{ vars.NODE_VERSION }} + registry-url: https://registry.npmjs.org/ + - name: Install Dependencies + run: npm ci + - name: Test + run: npm run test + - name: Publish + run: npm publish --access public From 4bec7be508e514e6459680c79fa0ac8b9b0db01f Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Mon, 30 Mar 2026 21:14:37 -0700 Subject: [PATCH 3/3] With specs passing on recent node, removing the v14 holdover I only kept v14 since that's what this repo originally used. But with macos runners being on Silicon, macos v14 specs fail as they have no bin to download. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4999e5..c1cd072 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - node-version: [14, '${{ vars.NODE_VERSION }}' ] + node-version: [20, '${{ vars.NODE_VERSION }}' ] fail-fast: false runs-on: ${{ matrix.os }} steps: