-
Notifications
You must be signed in to change notification settings - Fork 50
Add npm package artifact generation to test workflow #819
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
Conversation
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
…ct name Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
|
@copilot: While we're here, upgrade all actions in this file to their latest versions. Also, upgrade the node version from 22 to 24 (but keep using node 20). |
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
|
@copilot: revert changes to upgrade actions versions and node version |
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
.github/workflows/test.yaml
Outdated
|
|
||
| - name: Upload npm packages | ||
| if: contains(matrix.os, 'ubuntu') | ||
| uses: actions/upload-artifact@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.
@copilot: upgrade just this action to the latest version
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.
Done in 1afc4ca - upgraded actions/upload-artifact from v4 to v6.
.github/workflows/test.yaml
Outdated
| name: packages | ||
| path: | | ||
| packages/**/*.tgz | ||
| !packages/**/node_modules/**/*.tgz |
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.
@copilot: would it be safer to exclude everything under node_modules? if so, do we even need the last **?
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.
Done in 187db23 - changed to !packages/**/node_modules/** to exclude everything under node_modules (not just .tgz files). The ** at the end is needed to match any files/directories at any depth within node_modules.
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Updates the test workflow to generate and upload npm package artifacts.
Changes Made
Artifact Generation
rush packstep to generate package tarballs (.tgz files)actions/upload-artifact@v6contains(matrix.os, 'ubuntu')packagesnode_modulesdirectories from artifact uploadArtifacts Produced
The workflow generates and uploads three npm package tarballs:
@microsoft.azure/openapi-validator@microsoft.azure/openapi-validator-core@microsoft.azure/openapi-validator-rulesetsThese artifacts are uploaded only from the ubuntu runner to avoid duplication, with the upload step configured to fail if no .tgz files are found. Everything within node_modules directories is excluded from the upload.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.