Skip to content

Commit cc18125

Browse files
committed
Use package.json as the cache dependency file
1 parent 79ec948 commit cc18125

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
17+
cache-dependency-path: ./package.json
18+
cache: "yarn"
1719
node-version: 18
1820
- uses: bahmutov/npm-install@v1
1921
# Set the version in package.json to match the tag
@@ -39,6 +41,7 @@ jobs:
3941
- uses: actions/setup-node@v4
4042
with:
4143
node-version: 18
44+
cache-dependency-path: ./package.json
4245
cache: "yarn"
4346
# Install deps in base package and build into js-dist
4447
- uses: bahmutov/npm-install@v1

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- uses: actions/setup-node@v4
3939
with:
4040
node-version: ${{ matrix.node-version }}
41+
cache-dependency-path: ./package.json
4142
cache: "yarn"
4243
- uses: bahmutov/npm-install@v1
4344
- name: Run lint
@@ -61,6 +62,7 @@ jobs:
6162
- uses: actions/setup-node@v4
6263
with:
6364
node-version: ${{ matrix.node-version }}
65+
cache-dependency-path: ./package.json
6466
cache: "yarn"
6567
- uses: bahmutov/npm-install@v1
6668
- name: Run build

0 commit comments

Comments
 (0)