Skip to content

Commit

Permalink
ci: use containerbase setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Feb 3, 2025
1 parent d9d915a commit b4e5871
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: 20.18.2 # renovate: datasource=node depName=node

permissions:
contents: read

Expand All @@ -23,22 +20,10 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: enable corepack
run: corepack enable

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
- name: ⚙️ Setup
uses: containerbase/internal-tools/setup@fcbde3cdedad26eabf59776988e2a4b47fee98e5 # v3.7.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm

- name: enable corepack
run: corepack enable

- name: Installing dependencies
run: pnpm install
save-cache: true

- name: lint
run: pnpm prettier
Expand All @@ -49,6 +34,9 @@ jobs:
runs-on: ${{ matrix.arch.os }}
name: build (${{ matrix.arch.name }})

permissions:
contents: write

strategy:
matrix:
arch:
Expand All @@ -60,11 +48,10 @@ jobs:
env:
ARCH: ${{ matrix.arch.name }} # build target, name required by binary-builder

permissions:
contents: write

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: false

- name: binary-builder
uses: containerbase/internal-tools@bbbf98bb61968071a4052c89fccd25a292d69c73 # v3.5.22
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.13.1

0 comments on commit b4e5871

Please sign in to comment.