Skip to content

Commit d717c97

Browse files
Copilotmikeharder
andauthored
Add npm package artifact generation to test workflow (#819)
* Initial plan * Add rush pack and artifact upload steps to test workflow Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Restrict pack and upload to ubuntu-latest only with simplified artifact name Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Use contains() to check for ubuntu in OS string Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Upgrade actions to v6 and update Node version from 22 to 24 Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Apply suggestion from @mikeharder * Exclude tarballs under node_modules from artifact upload Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Revert actions upgrade to v4 and node version back to 22 Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Upgrade upload-artifact action to v6 Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Simplify node_modules exclusion to exclude everything under node_modules Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> Co-authored-by: Mike Harder <mharder@microsoft.com>
1 parent cfcb751 commit d717c97

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,17 @@ jobs:
4242

4343
- name: rush regen-ruleindex
4444
run: node common/scripts/install-run-rush.js regen-ruleindex
45+
46+
- name: rush pack
47+
if: contains(matrix.os, 'ubuntu')
48+
run: node common/scripts/install-run-rush.js pack
49+
50+
- name: Upload npm packages
51+
if: contains(matrix.os, 'ubuntu')
52+
uses: actions/upload-artifact@v6
53+
with:
54+
name: packages
55+
path: |
56+
packages/**/*.tgz
57+
!packages/**/node_modules/**
58+
if-no-files-found: error

0 commit comments

Comments
 (0)