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: Publish Docs | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [ready_for_review, synchronize, opened, reopened] | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
- bugfix/** | ||
- featured/** | ||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
Check failure on line 17 in .github/workflows/deploy-docs.yml GitHub Actions / .github/workflows/deploy-docs.ymlInvalid workflow file
|
||
publish-docs: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install Dependencies | ||
run: npm ci | ||
- run: npm install | ||
name: Publish to Chromatic | ||
- uses: chromaui/action@latest | ||
with: | ||
projectToken: ${{ secrets.PROJECT_CHROMATIC_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
onlyChanged: true # fast construction for the project |