Skip to content

Commit

Permalink
Rename setup action, isolate build step
Browse files Browse the repository at this point in the history
Co-authored-by: Wryn (yage) Wagner <[email protected]>
  • Loading branch information
paescuj and wrynegade committed Aug 6, 2024
1 parent 4558b9c commit 4b84cce
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: Setup env
description: Setup the environment

inputs:
build:
description: Run the build step
required: false
name: Setup
description: Configure Node.js + pnpm and install dependencies

runs:
using: composite
Expand Down Expand Up @@ -37,8 +32,3 @@ runs:
- name: Install dependencies
shell: bash
run: pnpm install

- name: Build
if: inputs.build == 'true'
shell: bash
run: pnpm run build
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/setup-env
uses: ./.github/actions/setup

- name: Run linter with autofix
continue-on-error: true
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/setup-env
uses: ./.github/actions/setup

- name: Run linter
run: pnpm run lint
Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/setup-env
uses: ./.github/actions/setup

- name: Run typecheck
run: pnpm run typecheck
Expand All @@ -45,10 +45,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup env & build
uses: ./.github/actions/setup-env
with:
build: true
- name: Setup env
uses: ./.github/actions/setup

- name: Build
run: pnpm run build

- name: Run action
id: action
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup env & build
uses: ./.github/actions/setup-env
with:
build: true
- name: Setup env
uses: ./.github/actions/setup

- name: Build
run: pnpm run build

- name: Commit changes
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup env & build
uses: ./.github/actions/setup-env
with:
build: true
- name: Setup env
uses: ./.github/actions/setup

- name: Build
run: pnpm run build

- name: Update version in readme
run: |
Expand Down

0 comments on commit 4b84cce

Please sign in to comment.