-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e08e65d
commit e8f8021
Showing
7 changed files
with
101 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Prepare Job | ||
description: Prepare the job by installing required tools and dependencies | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Enable Corepack | ||
run: corepack enable | ||
shell: 'bash -Eeuo pipefail {0}' | ||
|
||
- id: setup-node | ||
name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'pnpm' | ||
node-version-file: '.node-version' | ||
|
||
- id: cache-node-modules | ||
name: Cache node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
key: node-${{ steps.setup-node.outputs.node-version }}-modules-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
path: '**/node_modules' | ||
restore-keys: node-${{ steps.setup-node.outputs.node-version }}-modules-${{ runner.os }}- | ||
|
||
- if: steps.cache-node-modules.outputs.cache-hit != 'true' || steps.setup-node.outputs.cache-hit != 'true' | ||
env: | ||
HUSKY: '0' | ||
name: Install dependencies | ||
run: pnpm install | ||
shell: 'bash -Eeuo pipefail {0}' | ||
|
||
- name: Build packages | ||
run: pnpm run build | ||
shell: 'bash -Eeuo pipefail {0}' |
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
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
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
Oops, something went wrong.