Skip to content

Commit f139116

Browse files
committed
ci: setting build with cache
1 parent 98e6ef3 commit f139116

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/actions/cached-deps/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ runs:
55
using: 'composite'
66
steps:
77
- name: 'Cache Dependencies'
8-
uses: 'actions/cache@v3'
8+
uses: 'actions/cache@v4'
99
id: cache-node-modules
1010
with:
1111
path: 'node_modules'
1212
key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
1313

1414
- name: Install Dependencies
1515
if: steps.cache-node-modules.outputs.cache-hit != 'true'
16+
shell: bash
1617
run: |
1718
npm i
1819
npm run clean
19-
npm i --workspaces
20-
shell: bash
20+
npm i --workspaces

.github/workflows/nodejs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
uses: ./.github/actions/cached-deps
5757

5858
- name: npm build
59+
run: |
60+
npm run build
61+
62+
- name: npm build vscode
5963
run: |
6064
npm run vscode:prepublish --workspace=vscode
6165

0 commit comments

Comments
 (0)