Prevent publishing on storybook

This commit is contained in:
Joseph Garrone 2024-09-23 04:35:00 +02:00
parent 9a03f37fe3
commit 85954be93d

View File

@ -36,21 +36,21 @@ jobs:
- run: npm run build - run: npm run build
- run: npm run test - run: npm run test
storybook: #storybook:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
if: github.event_name == 'push' # if: github.event_name == 'push'
needs: test # needs: test
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- uses: actions/setup-node@v4 # - uses: actions/setup-node@v4
with: # with:
node-version: '18' # node-version: '18'
- uses: bahmutov/npm-install@v1 # - uses: bahmutov/npm-install@v1
- run: npm run build-storybook # - run: npm run build-storybook
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git # - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env: # env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p gh-pages@3.1.0 gh-pages -d ./storybook-static -u "github-actions-bot <actions@github.com>" # - run: npx -y -p gh-pages@3.1.0 gh-pages -d ./storybook-static -u "github-actions-bot <actions@github.com>"
check_if_version_upgraded: check_if_version_upgraded:
name: Check if version upgrade name: Check if version upgrade