|
@@ -26,11 +26,14 @@ jobs:
|
|
|
# retrieve local font files
|
|
# retrieve local font files
|
|
|
lfs: true
|
|
lfs: true
|
|
|
|
|
|
|
|
|
|
+ - uses: pnpm/action-setup@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ version: 9
|
|
|
|
|
+
|
|
|
- uses: actions/setup-node@v4
|
|
- uses: actions/setup-node@v4
|
|
|
with:
|
|
with:
|
|
|
node-version: ${{ inputs.node-version }}
|
|
node-version: ${{ inputs.node-version }}
|
|
|
- cache: 'yarn'
|
|
|
|
|
- cache-dependency-path: '**/pnpm-lock.yaml'
|
|
|
|
|
|
|
+ cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install turbo
|
|
- name: Install turbo
|
|
|
run: |
|
|
run: |
|
|
@@ -42,16 +45,6 @@ jobs:
|
|
|
rm -rf apps packages
|
|
rm -rf apps packages
|
|
|
mv out/* .
|
|
mv out/* .
|
|
|
|
|
|
|
|
- - name: Cache/Restore node_modules
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
- with:
|
|
|
|
|
- path: |
|
|
|
|
|
- **/node_modules
|
|
|
|
|
- !**/node_modules/.cache/turbo
|
|
|
|
|
- key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
|
|
- restore-keys: |
|
|
|
|
|
- node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
|
|
|
|
|
-
|
|
|
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
|
run: |
|
|
run: |
|
|
|
pnpm add node-gyp --global
|
|
pnpm add node-gyp --global
|
|
@@ -137,11 +130,14 @@ jobs:
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
+ - uses: pnpm/action-setup@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ version: 9
|
|
|
|
|
+
|
|
|
- uses: actions/setup-node@v4
|
|
- uses: actions/setup-node@v4
|
|
|
with:
|
|
with:
|
|
|
node-version: ${{ inputs.node-version }}
|
|
node-version: ${{ inputs.node-version }}
|
|
|
- cache: 'yarn'
|
|
|
|
|
- cache-dependency-path: '**/pnpm-lock.yaml'
|
|
|
|
|
|
|
+ cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install turbo
|
|
- name: Install turbo
|
|
|
run: |
|
|
run: |
|
|
@@ -153,16 +149,6 @@ jobs:
|
|
|
rm -rf apps packages
|
|
rm -rf apps packages
|
|
|
mv out/* .
|
|
mv out/* .
|
|
|
|
|
|
|
|
- - name: Restore node_modules
|
|
|
|
|
- uses: actions/cache/restore@v4
|
|
|
|
|
- with:
|
|
|
|
|
- path: |
|
|
|
|
|
- **/node_modules
|
|
|
|
|
- # shared key with build-prod
|
|
|
|
|
- key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
|
|
- restore-keys: |
|
|
|
|
|
- node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
|
|
|
|
|
-
|
|
|
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
|
run: |
|
|
run: |
|
|
|
pnpm install --prod
|
|
pnpm install --prod
|
|
@@ -228,21 +214,14 @@ jobs:
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- - uses: actions/setup-node@v4
|
|
|
|
|
|
|
+ - uses: pnpm/action-setup@v4
|
|
|
with:
|
|
with:
|
|
|
- node-version: ${{ inputs.node-version }}
|
|
|
|
|
- cache: 'yarn'
|
|
|
|
|
- cache-dependency-path: '**/pnpm-lock.yaml'
|
|
|
|
|
|
|
+ version: 9
|
|
|
|
|
|
|
|
- - name: Restore node_modules
|
|
|
|
|
- uses: actions/cache/restore@v4
|
|
|
|
|
|
|
+ - uses: actions/setup-node@v4
|
|
|
with:
|
|
with:
|
|
|
- path: |
|
|
|
|
|
- **/node_modules
|
|
|
|
|
- # saved key by build-prod
|
|
|
|
|
- key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
|
|
- restore-keys: |
|
|
|
|
|
- node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
|
|
|
|
|
|
|
+ node-version: ${{ inputs.node-version }}
|
|
|
|
|
+ cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
|
run: |
|
|
run: |
|