Skip to content

Commit c9943ec

Browse files
Copilotjeffredodd
andcommitted
fix(ci): use npx vite build and format workflow files
Co-authored-by: jeffredodd <2861516+jeffredodd@users.noreply.github.com>
1 parent 922e920 commit c9943ec

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

.github/workflows/ci.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ jobs:
1414
cache-key: ${{ steps.cache-key.outputs.key }}
1515
steps:
1616
- uses: actions/checkout@v4
17-
17+
1818
- uses: actions/setup-node@v4
1919
with:
2020
node-version-file: '.nvmrc'
21-
21+
2222
- name: Generate cache key
2323
id: cache-key
2424
run: echo "key=node-modules-${{ hashFiles('package-lock.json') }}" >> $GITHUB_OUTPUT
25-
25+
2626
- name: Cache node_modules
2727
id: cache-node-modules
2828
uses: actions/cache@v4
2929
with:
3030
path: node_modules
3131
key: ${{ steps.cache-key.outputs.key }}
32-
32+
3333
- name: Install dependencies
3434
if: steps.cache-node-modules.outputs.cache-hit != 'true'
3535
run: npm ci
@@ -41,31 +41,31 @@ jobs:
4141
group: gusto-ubuntu-default
4242
steps:
4343
- uses: actions/checkout@v4
44-
44+
4545
- uses: actions/setup-node@v4
4646
with:
4747
node-version-file: '.nvmrc'
48-
48+
4949
- name: Restore node_modules cache
5050
uses: actions/cache/restore@v4
5151
with:
5252
path: node_modules
5353
key: ${{ needs.setup.outputs.cache-key }}
54-
54+
5555
- name: Cache build artifacts
5656
id: cache-build
5757
uses: actions/cache@v4
5858
with:
5959
path: dist
6060
key: build-${{ github.sha }}
61-
61+
6262
- name: Generate i18n translations
6363
if: steps.cache-build.outputs.cache-hit != 'true'
6464
run: npm run i18n:generate
65-
65+
6666
- name: Build
6767
if: steps.cache-build.outputs.cache-hit != 'true'
68-
run: vite build
68+
run: npx vite build
6969

7070
# Lint job: Run ESLint (parallel with other checks)
7171
lint:
@@ -74,17 +74,17 @@ jobs:
7474
group: gusto-ubuntu-default
7575
steps:
7676
- uses: actions/checkout@v4
77-
77+
7878
- uses: actions/setup-node@v4
7979
with:
8080
node-version-file: '.nvmrc'
81-
81+
8282
- name: Restore node_modules cache
8383
uses: actions/cache/restore@v4
8484
with:
8585
path: node_modules
8686
key: ${{ needs.setup.outputs.cache-key }}
87-
87+
8888
- name: Lint
8989
run: npm run lint:check
9090

@@ -95,17 +95,17 @@ jobs:
9595
group: gusto-ubuntu-default
9696
steps:
9797
- uses: actions/checkout@v4
98-
98+
9999
- uses: actions/setup-node@v4
100100
with:
101101
node-version-file: '.nvmrc'
102-
102+
103103
- name: Restore node_modules cache
104104
uses: actions/cache/restore@v4
105105
with:
106106
path: node_modules
107107
key: ${{ needs.setup.outputs.cache-key }}
108-
108+
109109
- name: Format check
110110
run: npm run format:check
111111

@@ -116,17 +116,17 @@ jobs:
116116
group: gusto-ubuntu-default
117117
steps:
118118
- uses: actions/checkout@v4
119-
119+
120120
- uses: actions/setup-node@v4
121121
with:
122122
node-version-file: '.nvmrc'
123-
123+
124124
- name: Restore node_modules cache
125125
uses: actions/cache/restore@v4
126126
with:
127127
path: node_modules
128128
key: ${{ needs.setup.outputs.cache-key }}
129-
129+
130130
- name: TypeScript check
131131
run: npm run tsc
132132

@@ -137,16 +137,16 @@ jobs:
137137
group: gusto-ubuntu-default
138138
steps:
139139
- uses: actions/checkout@v4
140-
140+
141141
- uses: actions/setup-node@v4
142142
with:
143143
node-version-file: '.nvmrc'
144-
144+
145145
- name: Restore node_modules cache
146146
uses: actions/cache/restore@v4
147147
with:
148148
path: node_modules
149149
key: ${{ needs.setup.outputs.cache-key }}
150-
150+
151151
- name: Test with coverage
152152
run: npm run test:ci

.github/workflows/publish-rc.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,40 +65,40 @@ jobs:
6565
with:
6666
node-version-file: '.nvmrc'
6767
registry-url: 'https://registry.npmjs.org'
68-
68+
6969
- name: Restore node_modules cache
7070
id: cache-node-modules
7171
uses: actions/cache/restore@v4
7272
with:
7373
path: node_modules
7474
key: node-modules-${{ hashFiles('package-lock.json') }}
75-
75+
7676
- name: Install dependencies
7777
if: steps.cache-node-modules.outputs.cache-hit != 'true'
7878
run: npm ci
79-
79+
8080
- name: Save node_modules cache
8181
if: steps.cache-node-modules.outputs.cache-hit != 'true'
8282
uses: actions/cache/save@v4
8383
with:
8484
path: node_modules
8585
key: node-modules-${{ hashFiles('package-lock.json') }}
86-
86+
8787
- name: Restore build cache
8888
id: cache-build
8989
uses: actions/cache/restore@v4
9090
with:
9191
path: dist
9292
key: build-${{ github.sha }}
93-
93+
9494
- name: Generate i18n translations
9595
if: steps.cache-build.outputs.cache-hit != 'true'
9696
run: npm run i18n:generate
97-
97+
9898
- name: Build
9999
if: steps.cache-build.outputs.cache-hit != 'true'
100-
run: vite build
101-
100+
run: npx vite build
101+
102102
- name: Save build cache
103103
if: steps.cache-build.outputs.cache-hit != 'true'
104104
uses: actions/cache/save@v4

.github/workflows/publish.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,52 @@ jobs:
99
id-token: write
1010
steps:
1111
- uses: actions/checkout@v4
12-
12+
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version-file: '.nvmrc'
1616
registry-url: 'https://registry.npmjs.org'
17-
17+
1818
- name: Restore node_modules cache
1919
id: cache-node-modules
2020
uses: actions/cache/restore@v4
2121
with:
2222
path: node_modules
2323
key: node-modules-${{ hashFiles('package-lock.json') }}
24-
24+
2525
- name: Install dependencies
2626
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2727
run: npm ci
28-
28+
2929
- name: Save node_modules cache
3030
if: steps.cache-node-modules.outputs.cache-hit != 'true'
3131
uses: actions/cache/save@v4
3232
with:
3333
path: node_modules
3434
key: node-modules-${{ hashFiles('package-lock.json') }}
35-
35+
3636
- name: Restore build cache
3737
id: cache-build
3838
uses: actions/cache/restore@v4
3939
with:
4040
path: dist
4141
key: build-${{ github.sha }}
42-
42+
4343
- name: Generate i18n translations
4444
if: steps.cache-build.outputs.cache-hit != 'true'
4545
run: npm run i18n:generate
46-
46+
4747
- name: Build
4848
if: steps.cache-build.outputs.cache-hit != 'true'
49-
run: vite build
50-
49+
run: npx vite build
50+
5151
- name: Save build cache
5252
if: steps.cache-build.outputs.cache-hit != 'true'
5353
uses: actions/cache/save@v4
5454
with:
5555
path: dist
5656
key: build-${{ github.sha }}
57-
57+
5858
- name: Publish to NPM
5959
run: npm publish --access public
6060
env:

0 commit comments

Comments
 (0)