1616
1717 steps :
1818 - uses : actions/checkout@v6
19- - name : Setup dotnet
20- uses : actions/setup-dotnet@v5
21- with :
22- dotnet-version : |
23- 8.0.x
24- 9.0.x
25-
26- - run : npm ci
19+ - uses : ./.github/actions/setup-dotnet
20+ - uses : ./.github/actions/setup-js
2721 - run : dotnet restore
2822 - run : dotnet build --no-restore --configuration Release /WarnAsError
2923 - run : dotnet test --no-build --configuration Release
@@ -44,17 +38,11 @@ jobs:
4438 steps :
4539 - uses : actions/checkout@v6
4640
47- - uses : actions/setup-dotnet@v5
48- with :
49- dotnet-version : |
50- 8.0.x
51- 9.0.x
52-
53- - run : npm ci
54- working-directory : ${{ github.workspace }}
41+ - uses : ./.github/actions/setup-dotnet
42+ - uses : ./.github/actions/setup-js
5543
56- - run : npm run coalesce
57- - run : npm run build
44+ - run : pnpm coalesce
45+ - run : pnpm build
5846 - run : dotnet build --configuration Release
5947
6048 build-coalesce-vue :
@@ -69,29 +57,15 @@ jobs:
6957 steps :
7058 - uses : actions/checkout@v6
7159
72- # setup-node and update npm are only here to preemptively test
73- # the required install of npm@11 that's needed for OIDC npm publish
74- - uses : actions/setup-node@v6
75- with :
76- node-version : 24.x
77- registry-url : " https://registry.npmjs.org"
78-
79- - name : Update npm
80- run : npm install -g npm@latest
81-
82- - run : npm ci
83- working-directory : ${{ github.workspace }}
60+ - uses : ./.github/actions/setup-js
8461
85- - run : npm run lint
62+ - run : pnpm lint
8663
87- - name : npm run test
88- run : npm run test -- --coverage --reporter=default --reporter=junit --outputFile coalesce-vue.results.xml
64+ - name : pnpm test
65+ run : pnpm test -- --coverage --reporter=default --reporter=junit --outputFile coalesce-vue.results.xml
8966
90- - name : update version
91- run : sed -i "s/0.1.0-local/$COALESCE_VERSION/g" package.json
92-
93- - run : npm run build
94- - run : npm pack
67+ - run : pnpm build
68+ - run : pnpm pack
9569
9670 - name : Upload Artifact
9771 uses : actions/upload-artifact@v7
@@ -111,17 +85,13 @@ jobs:
11185 steps :
11286 - uses : actions/checkout@v6
11387
114- - run : npm ci
115- working-directory : ${{ github.workspace }}
116-
117- - name : npm run test
118- run : npm run test
88+ - uses : ./.github/actions/setup-js
11989
120- - name : update version
121- run : sed -i "s/0.1.0-local/$COALESCE_VERSION/g" package.json
90+ - name : pnpm test
91+ run : pnpm test
12292
123- - run : npm run build
124- - run : npm pack
93+ - run : pnpm build
94+ - run : pnpm pack
12595
12696 - name : Upload Artifact
12797 uses : actions/upload-artifact@v7
@@ -141,22 +111,18 @@ jobs:
141111 steps :
142112 - uses : actions/checkout@v6
143113
144- - run : npm ci
145- working-directory : ${{ github.workspace }}
114+ - uses : ./.github/actions/setup-js
146115
147- - name : npm run test
148- run : npm run test
149-
150- - name : update version
151- run : sed -i "s/0.1.0-local/$COALESCE_VERSION/g" package.json
116+ - name : pnpm test
117+ run : pnpm test
152118
153119 - name : update template dependency versions
154120 shell : pwsh
155121 working-directory : ./templates/Coalesce.Vue.Template
156122 run : ./Update-CoalesceVersions.ps1 -Version $env:COALESCE_VERSION
157123
158- - run : npm run build
159- - run : npm pack
124+ - run : pnpm build
125+ - run : pnpm pack
160126
161127 - name : Upload Artifact
162128 uses : actions/upload-artifact@v7
@@ -176,22 +142,14 @@ jobs:
176142 steps :
177143 - uses : actions/checkout@v6
178144
179- - uses : actions/setup-node@v6
180- with :
181- node-version : 24.x
145+ - uses : ./.github/actions/setup-js
182146
183- - run : npm ci
184- working-directory : ${{ github.workspace }}
147+ - run : pnpm build-local-deps # build coalesce-vue
148+ - run : pnpm build
149+ - run : pnpm lint
150+ - run : pnpm test
185151
186- - run : npm run build-local-deps # build coalesce-vue
187- - run : npm run build
188- - run : npm run lint
189- - run : npm run test
190-
191- - name : update version
192- run : sed -i "s/0.1.0-local/$COALESCE_VERSION/g" package.json
193-
194- - run : npm pack
152+ - run : pnpm pack
195153
196154 - name : Upload Artifact
197155 uses : actions/upload-artifact@v7
@@ -212,11 +170,10 @@ jobs:
212170 # fetch all commits to get last updated time or other git log info
213171 fetch-depth : 0
214172
215- - run : npm ci
216- working-directory : ${{ github.workspace }}
173+ - uses : ./.github/actions/setup-js
217174
218175 - name : Build docs
219- run : npm run build
176+ run : pnpm build
220177
221178 - name : Upload Artifact
222179 uses : actions/upload-artifact@v7
@@ -260,12 +217,11 @@ jobs:
260217 steps :
261218 - uses : actions/checkout@v6
262219
263- - name : Setup dotnet
264- uses : actions/setup-dotnet@v5
220+ - uses : ./.github/actions/setup-dotnet
221+
222+ - uses : ./.github/actions/setup-js
265223 with :
266- dotnet-version : |
267- 8.0.x
268- 9.0.x
224+ skip-install : " true"
269225
270226 - name : Download Artifacts
271227 uses : actions/download-artifact@v8
0 commit comments