Skip to content

Commit

Permalink
blacksmith.sh: Migrate workflows to Blacksmith (#675)
Browse files Browse the repository at this point in the history
This PR migrates some selected workflows to Blacksmith.

Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
  • Loading branch information
blacksmith-sh[bot] authored Sep 18, 2024
1 parent 83a6d10 commit 75247cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand Down Expand Up @@ -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]
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75247cf

Please sign in to comment.