-
-
Notifications
You must be signed in to change notification settings - Fork 473
ci: block compromised npm packages with Socket Firewall Free #2889
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 |
|---|---|---|
|
|
@@ -27,16 +27,17 @@ jobs: | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| persist-credentials: false | ||
|
|
||
| - uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0 | ||
| - uses: voidzero-dev/setup-vp@2dec1e33f4ab2c6d5bce1b0c4607961bb1a3f7a1 # v1.12.0 | ||
| with: | ||
| node-version: lts/* | ||
| cache: true | ||
|
|
||
| - name: 🟧 Install pnpm globally | ||
| run: vp install -g pnpm | ||
| sfw: true | ||
|
|
||
| - name: 🧪 Run Chromatic Visual and Accessibility Tests | ||
| uses: chromaui/action@8a2b82547aef5a3efc8ec3c7905f4ab09a76ed0b # v16.1.0 | ||
| with: | ||
| buildCommand: vp run build-storybook | ||
| outputDir: storybook-static | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. required when you pass
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't the default a temporary directory? But I guess we have to set it to something since it is indeed required, and since our
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, heh, it's an example provided, not the default 🤦🏼. |
||
| env: | ||
| CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }} | ||
| CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
|
||
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 was a workaround for chromatic needing access to the package manager that it detects we use (pnpm), but that's just needed so it can detect our command to build storybook, so we can just specify that command instead!