Skip to content

Commit 7a73e0b

Browse files
committed
imrpoved actions
1 parent 9eab39c commit 7a73e0b

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
path: |
2222
~/.cache/yarn
2323
node_modules
24-
2524
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
2625
restore-keys: |
2726
${{ runner.os }}-build-${{ env.cache-name }}-

.github/workflows/npm-publish-canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v3
2222
- uses: actions/setup-node@v3
2323
with:
24-
node-version: 16
24+
node-version: 18
2525
registry-url: https://npm.pkg.github.com/
2626
- name: Cache node modules
2727
id: cache-yarn

.github/workflows/npm-publish-stable.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 18
1919
- run: yarn test
2020

2121
publish-gpr:
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@v3
2929
- uses: actions/setup-node@v3
3030
with:
31-
node-version: 16
31+
node-version: 18
3232
registry-url: https://npm.pkg.github.com/
3333

3434
- name: Cache node modules
@@ -37,7 +37,9 @@ jobs:
3737
env:
3838
cache-name: cache-node-module
3939
with:
40-
path: ~/.cache/yarn
40+
path: |
41+
~/.cache/yarn
42+
node_modules
4143
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
4244
restore-keys: |
4345
${{ runner.os }}-build-${{ env.cache-name }}-

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- name: Cache node modules
1818
id: cache-yarn
1919
uses: actions/cache@v2
20+
env:
21+
cache-name: cache-node-module
2022
with:
2123
path: |
2224
~/.cache/yarn

.github/workflows/trunk-nightly.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
env:
2424
cache-name: cache-node-module
2525
with:
26-
path: ~/.npm
26+
path: |
27+
~/.cache/yarn
28+
node_modules
2729
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
2830
restore-keys: |
2931
${{ runner.os }}-build-${{ env.cache-name }}-

.github/workflows/trunk-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
env:
1919
cache-name: cache-node-module
2020
with:
21-
path: ~/.npm
21+
path: |
22+
~/.cache/yarn
23+
node_modules
2224
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
2325
restore-keys: |
2426
${{ runner.os }}-build-${{ env.cache-name }}-

0 commit comments

Comments
 (0)