remove sensible data from env #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Chromatic Unlock' | |
on: | |
pull_request: | |
paths: | |
- libs/ui/** | |
- libs/features/** | |
push: | |
branches: ['staging'] | |
paths: | |
- libs/ui/** | |
- libs/features/** | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout [Pull Request] | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: actions/checkout@v3 | |
name: Checkout [Default Branch] | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
fetch-depth: 0 | |
- name: Set up environment and cache dependencies | |
uses: sebpalluel/ci/.github/actions/setup-environment@latest | |
- name: Install Libvips | |
run: sudo apt-get update && sudo apt-get install -y libvips-dev | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_UNLOCK_PROJECT_TOKEN }} | |
exitZeroOnChanges: true | |
onlyChanged: true | |
buildScriptName: build-storybook:unlock |