From 5e7db8491fcb582b892feb1658c347f984deb02b Mon Sep 17 00:00:00 2001 From: Corey Rice Date: Wed, 16 Mar 2022 09:30:00 -0300 Subject: [PATCH] Add GITHUB_TOKEN for auth to push to gh-pages Storybook deployer requires [GH_TOKEN] var https://github.com/storybookjs/storybook-deployer#storybook-deployer This [issue](https://github.com/storybookjs/storybook-deployer/issues/77) reccomend scoping it to the current actor --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 591de0d842..90c25210e6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,7 +78,9 @@ jobs: - name: Deploy if: github.ref == 'refs/heads/develop' - run: yarn deploy-storybook + run: yarn deploy-storybook --ci + env: + GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} test: runs-on: ubuntu-20.04