From c158e694d890017ba2e72927adf36409795ac63b Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 29 Jan 2025 11:21:30 -0600 Subject: [PATCH] Merge pull request #74 from github/chore/pin-ubuntu-runners ci: pin ubuntu runners to v22 --- .github/workflows/nodejs.yml | 31 +++++++++++++++---------------- .github/workflows/publish.yml | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ed9533d..d947a49 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -2,25 +2,24 @@ name: Node CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: - - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '20.x' - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm test - env: - CI: true + - uses: actions/checkout@v1 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '20.x' + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm test + env: + CI: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 55166b2..b73d739 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: jobs: publish-npm: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3