Repository navigation
fix(ci): add build step to insider publish test job #722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ jobs: | |
| timeout-minutes: 10 | ||
| strategy: | ||
| matrix: | ||
| node-version: [20] | ||
| node-version: [22] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
|
|
@@ -33,14 +33,17 @@ jobs: | |
| timeout-minutes: 15 | ||
| strategy: | ||
| matrix: | ||
| node-version: [20] | ||
| node-version: [22] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: ./.github/actions/setup-squad-node | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - name: Build (required for subpath export resolution) | ||
| run: npm run build | ||
|
|
||
|
Comment on lines
+44
to
+46
|
||
| - name: Run tests | ||
| run: npm test | ||
|
|
||
|
|
@@ -81,7 +84,7 @@ jobs: | |
| timeout-minutes: 10 | ||
| strategy: | ||
| matrix: | ||
| node-version: [20] | ||
| node-version: [22] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new build step makes the workflow run
npm run buildin both thebuildjob (line 27) and again in thetestjob, which doubles build time without sharing artifacts. Consider either removing the standalonebuildjob/needs: build, or uploading build artifacts inbuildand downloading them intestinstead of rebuilding.