Merge pull request #150 from SVendittelli/renovate/pin-dependencies #112
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 Publish" | |
on: push | |
# Add required environment variables to satisfy build, they are blank as the relevant dependencies are mocked | |
env: | |
DATABASE_URL: "" | |
SUPERTOKENS_API_KEY: "" | |
SUPERTOKENS_CONNECTION_URI: "" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4 | |
with: | |
node-version-file: "package.json" | |
cache: "npm" | |
- run: npm ci | |
- name: Publish to Chromatic | |
uses: chromaui/action@24e115aa107a595a2e98d6df99a418c388818c54 # v10 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
exitOnceUploaded: true |