@@ -11,25 +11,27 @@ runs:
1111 using : ' composite'
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
16- - name : Cache dependencies
17- uses : actions/cache@v3
16+ - name : Install pnpm
17+ uses : pnpm/action-setup@v4
18+
19+ - name : Set up node env
20+ uses : actions/setup-node@v4
1821 with :
19- path : ~/.npm
20- key : npm-${{ hashFiles('package-lock.json') }}
21- restore-keys : npm-
22+ node-version : 24
23+ cache : pnpm
2224
2325 - name : Install dependencies
24- run : npm ci --ignore-scripts
26+ run : pnpm install --frozen-lockfile
2527 shell : bash
2628
2729 - name : Build the project
28- run : npm run build
30+ run : pnpm run build
2931 shell : bash
3032
31- - name : Run npm link
32- run : npm link
33+ - name : Run pnpm link
34+ run : pnpm link --global
3335 shell : bash
3436
3537 - name : Create project
@@ -38,17 +40,17 @@ runs:
3840
3941 - name : Build created project
4042 working-directory : ./node-app
41- run : npm run build
43+ run : pnpm run build
4244 shell : bash
4345
4446 - name : Run lint
4547 working-directory : ./node-app
46- run : npm run ci-lint
48+ run : pnpm run ci-lint
4749 shell : bash
4850
4951 - name : Run tests
5052 working-directory : ./node-app
51- run : npm run ci-test
53+ run : pnpm run ci-test
5254 shell : bash
5355 env :
5456 DB_CONNECTION_STRING : ${{inputs.dbConnection}}
5759 if : ${{ !contains(inputs.options, '--api none') }}
5860 working-directory : ./node-app
5961 run : |
60- npm run start &
62+ pnpm run start &
6163 start_pid=$!
6264 sleep 10
6365 kill $start_pid
6971 if : ${{ contains(inputs.options, '--api none') }}
7072 working-directory : ./node-app
7173 shell : bash
72- run : npm run start
74+ run : pnpm run start
7375 env :
7476 DB_CONNECTION_STRING : ${{inputs.dbConnection}}
0 commit comments