-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade to yarn 4 * fix: use correct cache dir command * chore: organize pipeline * chore: use setup-node instead of handrolling it * fix: dependency conflicts and docker setup
- Loading branch information
1 parent
a882279
commit c281abc
Showing
12 changed files
with
7,844 additions
and
5,188 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
build | ||
.env | ||
.env.example | ||
.yarn |
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,19 @@ | ||
name: Yarn Install | ||
description: Installs and caches yarn dependencies | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 'Enable corepack' | ||
shell: bash | ||
run: corepack enable | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
node-version: 21 | ||
|
||
# This step should prefer the cached dependencies and restore node_modules | ||
- name: Install dependencies | ||
shell: bash | ||
run: yarn --immutable |
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,16 @@ | ||
name: Reusable Yarn Action | ||
description: Runs a given yarn command after installing all dependencies including caching | ||
|
||
inputs: | ||
command: | ||
description: 'The command to run (excluding the yarn prefix)' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: ./.github/actions/install-yarn | ||
|
||
- name: Run command in root folder | ||
shell: bash | ||
run: yarn ${{ inputs.command }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ src/**/*.generated.ts | |
|
||
# One off scripts that are not relevant to the repository. | ||
src/scripts/ | ||
|
||
.yarn/ |
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,2 @@ | ||
nodeLinker: node-modules | ||
enableGlobalCache: false |
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.