Skip to content

Update release.yml

Update release.yml #3

Workflow file for this run

name: Release CI
on:
push:
branches: [ "main" ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: yarn
- run: npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- run: npx chromatic --project-token=${CHROMATIC_TOKEN}
env:
CHROMATIC_TOKEN: ${{ secrets.CHROMATIC_TOKEN }}