Skip to content

Commit 7d013b9

Browse files
authored
Update node.js.yml
1 parent 15223d8 commit 7d013b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3-
4-
name: Call-Api
1+
name: Node.js CI
52

63
on:
74
push:
@@ -24,10 +21,13 @@ jobs:
2421
uses: actions/setup-node@v4
2522
with:
2623
node-version: ${{ matrix.node-version }}
27-
cache: 'pnpm' # Enable pnpm caching
24+
cache: 'pnpm'
2825

29-
- name: Install pnpm
30-
run: npm install -g pnpm
26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v2
28+
with:
29+
version: 8 # or your desired pnpm version
30+
run_install: false
3131

3232
- name: Install dependencies
3333
run: pnpm install

0 commit comments

Comments
 (0)