From ac35e2c4a72a6ab738ace622efbad0cb21fb7828 Mon Sep 17 00:00:00 2001 From: Rick Smith Date: Wed, 15 Oct 2025 13:50:12 +0100 Subject: [PATCH 1/2] updated master to main in piepline --- .github/workflows/storybook.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 8025a08..374b1bc 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -3,7 +3,8 @@ name: Build & Deploy Storybook on: push: branches: - - master + - main + workflow_dispatch: jobs: build-and-deploy: From 4519e7c57c25f5d8e6afe620f4faf78dd30876b7 Mon Sep 17 00:00:00 2001 From: Rick Smith Date: Wed, 15 Oct 2025 13:55:21 +0100 Subject: [PATCH 2/2] Fix Storybook deployment authentication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added permissions.contents.write to allow pushing to gh-pages branch - Updated to use GITHUB_TOKEN instead of ACCESS_TOKEN for proper authentication - Configured checkout action to use the token 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/storybook.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 374b1bc..27a69b6 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -9,8 +9,12 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -22,4 +26,4 @@ jobs: - name: Deploy Storybook run: yarn storybook-to-ghpages --ci env: - GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}