|
@@ -47,10 +47,20 @@ jobs:
|
|
|
steps:
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
|
|
- - uses: getsentry/action-setup-volta@e4939d337b83760d13a9d7030a6f68c9d0ee7581 # v2.0.0
|
|
|
+ - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
|
|
|
+ id: setup-node
|
|
|
+ with:
|
|
|
+ node-version-file: '.volta.json'
|
|
|
+
|
|
|
+ - name: node_modules cache
|
|
|
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
|
|
+ id: nodemodulescache
|
|
|
+ with:
|
|
|
+ path: node_modules
|
|
|
+ key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock', '.volta.json') }}
|
|
|
|
|
|
- - name: Install dependencies
|
|
|
- id: dependencies
|
|
|
+ - name: Install Javascript Dependencies
|
|
|
+ if: steps.nodemodulescache.outputs.cache-hit != 'true'
|
|
|
run: yarn install --frozen-lockfile
|
|
|
|
|
|
# Setup custom tsc matcher, see https://github.com/actions/setup-node/issues/97
|
|
@@ -86,14 +96,17 @@ jobs:
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
name: Checkout sentry
|
|
|
|
|
|
- - uses: getsentry/action-setup-volta@e4939d337b83760d13a9d7030a6f68c9d0ee7581 # v2.0.0
|
|
|
+ - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
|
|
|
+ id: setup-node
|
|
|
+ with:
|
|
|
+ node-version-file: '.volta.json'
|
|
|
|
|
|
- name: node_modules cache
|
|
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
|
|
id: nodemodulescache
|
|
|
with:
|
|
|
path: node_modules
|
|
|
- key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
+ key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock', '.volta.json') }}
|
|
|
|
|
|
- name: Install Javascript Dependencies
|
|
|
if: steps.nodemodulescache.outputs.cache-hit != 'true'
|