From 75247cf16741b4eb0c317478f7e52fb602f3117f Mon Sep 17 00:00:00 2001 From: "blacksmith-sh[bot]" <157653362+blacksmith-sh[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:45:10 -0400 Subject: [PATCH] blacksmith.sh: Migrate workflows to Blacksmith (#675) This PR migrates some selected workflows to Blacksmith. Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> --- .github/workflows/deploy-pages.yml | 4 ++-- .github/workflows/pull-requests.yml | 12 ++++++------ .github/workflows/release-please.yml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index e3f034cf..c6132f07 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -23,14 +23,14 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - name: Checkout uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: 20.x registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 3d2e23af..d3182e0c 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -8,7 +8,7 @@ jobs: bundlesize: if: ${{ always() }} needs: release-bundlesize - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: pull-requests: write strategy: @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: ${{ matrix.node-version }} registry-url: "https://registry.npmjs.org" @@ -53,7 +53,7 @@ jobs: inspect: if: ${{ always() }} needs: release-bundlesize - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 strategy: matrix: node-version: [20.x] @@ -62,7 +62,7 @@ jobs: uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: ${{ matrix.node-version }} registry-url: "https://registry.npmjs.org" @@ -81,7 +81,7 @@ jobs: release-bundlesize: if: github.head_ref == 'release-please--branches--main' - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: contents: write pull-requests: write @@ -106,7 +106,7 @@ jobs: token: ${{ secrets.NODE_CLI }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: ${{ matrix.node-version }} registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b3a354dc..9d7f597d 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,7 +11,7 @@ permissions: jobs: release-please: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - name: Initialize Release Please id: release @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 if: ${{ steps.release.outputs.releases_created }} with: node-version: 20.x