-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: run GHA build job locally with act
- Loading branch information
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# This is the composite action: | ||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action | ||
# https://docs.github.com/en/actionxs/creating-actions/creating-a-composite-action | ||
# | ||
# Composite actions have some limitations: | ||
# - many contexts are unavailable, e.g. `runner` | ||
|
@@ -47,16 +47,21 @@ runs: | |
(steps.node-modules-restore.outputs.cache-hit == 'true') && 'true' || '' | ||
}}' >> "$GITHUB_ENV" | ||
- name: Enable corepack | ||
shell: bash | ||
run: corepack enable | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.12 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }} | ||
|
||
- name: Enable corepack | ||
shell: bash | ||
run: corepack enable | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2.8.3 | ||
if: env.CACHE_HIT != 'true' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters