Skip to content

Commit

Permalink
ci: Deploy and publish components
Browse files Browse the repository at this point in the history
  • Loading branch information
puria committed Jan 18, 2024
1 parent 71645d2 commit ec35c4e
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
on:
- push

- pull_request

push:
branches:
- main
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -15,7 +20,7 @@ jobs:
- run: pnpm install
- run: pnpm run test

publish:
docs:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
Expand All @@ -30,4 +35,14 @@ jobs:
- run: pnpm run build-storybook
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
folder: storybook-static

release-please:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: google-github-actions/release-please-action@v4
with:
release-type: node
token: ${{ secrets.PAT }}

0 comments on commit ec35c4e

Please sign in to comment.