eschutho commented on code in PR #21095: URL: https://github.com/apache/superset/pull/21095#discussion_r948527583
########## .github/workflows/chromatic.yml: ########## @@ -0,0 +1,56 @@ +# .github/workflows/chromatic.yml +# seee https://www.chromatic.com/docs/github-actions + +# Workflow name +name: 'Chromatic' + +# Event for the workflow +# Only run if changes were made in superset-frontend folder of repo +on: + push: + branches: + - master + paths: + - "superset-frontend/**" + pull_request_target: + types: [opened, edited, synchronize, reopen] + paths: + - "superset-frontend/**" + +env: + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + +# List of jobs +jobs: + chromatic-deployment: + # Operating System + runs-on: ubuntu-latest + # Job steps + steps: + - uses: actions/checkout@v1 + - name: Install dependencies + run: npm ci + working-directory: superset-frontend + # 👇 Checks if the branch is not master and runs Chromatic + - name: Publish to Chromatic + if: github.ref != 'refs/heads/master' + uses: chromaui/action@v1 + # Required options for the Chromatic GitHub Action + with: + # 👇 Location of package.json from root of mono-repo + workingDir: superset-frontend + # 👇 Chromatic projectToken, refer to the manage page to obtain it. + projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }} + exitZeroOnChanges: true # 👈 Option to prevent the workflow from failing + # 👇 Checks if the branch is master and accepts all changes in Chromatic + - name: Publish to Chromatic and auto accept changes + if: github.ref == 'refs/heads/master' + uses: chromaui/action@v1 + # Required options for the Chromatic GitHub Action + with: + # 👇 Location of package.json from root of mono-repo + workingDir: superset-frontend + # 👇 Chromatic projectToken, refer to the manage page to obtain it. + projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }} Review Comment: you can put `${{ secrets.GITHUB_TOKEN }}` here ########## .github/workflows/chromatic.yml: ########## @@ -0,0 +1,56 @@ +# .github/workflows/chromatic.yml +# seee https://www.chromatic.com/docs/github-actions + +# Workflow name +name: 'Chromatic' + +# Event for the workflow +# Only run if changes were made in superset-frontend folder of repo +on: + push: + branches: + - master + paths: + - "superset-frontend/**" + pull_request_target: + types: [opened, edited, synchronize, reopen] + paths: + - "superset-frontend/**" + +env: + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + +# List of jobs +jobs: + chromatic-deployment: + # Operating System + runs-on: ubuntu-latest + # Job steps + steps: + - uses: actions/checkout@v1 + - name: Install dependencies + run: npm ci + working-directory: superset-frontend + # 👇 Checks if the branch is not master and runs Chromatic + - name: Publish to Chromatic + if: github.ref != 'refs/heads/master' + uses: chromaui/action@v1 + # Required options for the Chromatic GitHub Action + with: + # 👇 Location of package.json from root of mono-repo + workingDir: superset-frontend + # 👇 Chromatic projectToken, refer to the manage page to obtain it. + projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }} Review Comment: `${{ secrets.GITHUB_TOKEN }}` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
