Skip to content

Commit

Permalink
fix: move to 1 workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
daphnesmit committed Apr 2, 2024
1 parent ca01c59 commit 6b2a01c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 56 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: Run Type Check & Linters
name: Build, test & deploy
runs-on: ubuntu-latest
timeout-minutes: 10

Expand All @@ -17,6 +17,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: npm ci

Expand All @@ -35,9 +40,19 @@ jobs:
- name: Build package
run: npm run build

- name: Archive build artifacts
- name: Deploy Storybook
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2
with:
name: dist
path: dist
install_command: npm ci
build_command: npm run build-storybook
path: storybook-static
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

- name: Release
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
51 changes: 0 additions & 51 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 6b2a01c

Please sign in to comment.