Skip to content

Commit 72d9460

Browse files
committed
chore: update check dist workfljow
1 parent 9424c64 commit 72d9460

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/check-dist.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
statuses: write
2323

2424
steps:
25-
- name: Checkout
26-
id: checkout
27-
uses: actions/checkout@v4
25+
- uses: actions/checkout@v4
2826

2927
- name: Setup Node.js
3028
uses: actions/setup-node@v4
@@ -33,17 +31,14 @@ jobs:
3331
cache: npm
3432

3533
- name: Install Dependencies
36-
id: install
3734
run: npm ci
3835

39-
- name: Build dist/ Directory
40-
id: build
41-
run: npm run bundle
36+
- name: Rebuild dist/ Directory
37+
run: npm run build
4238

4339
# This will fail the workflow if the `dist/` directory is different than
4440
# expected.
4541
- name: Compare Directories
46-
id: diff
4742
run: |
4843
if [ ! -d dist/ ]; then
4944
echo "Expected dist/ directory does not exist. See status below:"
@@ -58,9 +53,8 @@ jobs:
5853
5954
# If `dist/` was different than expected, upload the expected version as a
6055
# workflow artifact.
61-
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
62-
name: Upload Artifact
63-
id: upload
56+
- name: Upload Artifact
57+
if: ${{ failure() && steps.diff.outcome == 'failure' }}
6458
uses: actions/upload-artifact@v4
6559
with:
6660
name: dist

0 commit comments

Comments
 (0)