Skip to content

Commit

Permalink
one job
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Feb 4, 2024
1 parent d1f7bed commit 1f66dc7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 52 deletions.
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,41 @@ jobs:
- name: 🚀 Turbo
run: npx turbo run lint build test

- name: Deploy
- name: Publish
if: endsWith(github.ref, 'main')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx changeset publish --no-git-tag

- name: Build storybook
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: npm run storybook:build --workspace=@utima/ui

- name: Fix permissions
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
chmod -c -R +rX "./packages/ui/storybook-static/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: actions/upload-pages-artifact@v2
id: upload
with:
path: ./packages/ui/storybook-static

deploy-storybook:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: ci
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
50 changes: 0 additions & 50 deletions .github/workflows/deploy-storybook.yml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/ui/src/components/badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type VariantProps } from 'class-variance-authority';
import type { VariantProps } from 'class-variance-authority';
import { forwardRef, type ComponentProps } from 'react';

import { cn } from '@/utils';
Expand Down

0 comments on commit 1f66dc7

Please sign in to comment.