Skip to content

ci: disable pnpm audit step for the time being #1742

ci: disable pnpm audit step for the time being

ci: disable pnpm audit step for the time being #1742

name: Deploy Storybook.js
on:
push:
branches-ignore:
# Do not run this workflow on Dependabot updates, or else it'll
# absolutely kill our GitHub Action & Chromatic CI minutes.
- dependabot/**
jobs:
deploy-to-chromatic:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
# Required by the Chromatic GitHub Action
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8.6.2
- name: Setup nodejs
uses: actions/[email protected]
with:
node-version-file: package.json
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Storybook
run: pnpm build-storybook
- name: Import secrets from Vault
uses: hashicorp/[email protected]
id: secrets
with:
url: https://secrets.hackworth-corp.com
path: "github-actions"
role: primer-app-workflow-chromatic
method: jwt
secrets: |
secret/data/chromatic/primer-app token | CHROMATIC_PROJECT_TOKEN ;
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
storybookBuildDir: storybook-static
projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
exitZeroOnChanges: true