Skip to content

Commit

Permalink
Merge pull request #3 from locol23/chore/use-github-actions
Browse files Browse the repository at this point in the history
chore: Use GitHub Actions
  • Loading branch information
locol23 authored Jun 2, 2022
2 parents 6bdb13d + f0f676c commit c3ff6e5
Show file tree
Hide file tree
Showing 16 changed files with 95 additions and 1,118 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Chromatic

on: push

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/npm-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: npm package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 10
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
registry-url: 'http://npm.pkg.github.com'
- run: |
yarn
yarn build
yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 10
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn
- run: yarn test

3 changes: 0 additions & 3 deletions examples/nextjs/.eslintrc.json

This file was deleted.

35 changes: 0 additions & 35 deletions examples/nextjs/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions examples/nextjs/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions examples/nextjs/next-env.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions examples/nextjs/next.config.js

This file was deleted.

26 changes: 0 additions & 26 deletions examples/nextjs/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions examples/nextjs/pages/_app.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions examples/nextjs/pages/index.tsx

This file was deleted.

Binary file removed examples/nextjs/public/favicon.ico
Binary file not shown.
4 changes: 0 additions & 4 deletions examples/nextjs/public/vercel.svg

This file was deleted.

20 changes: 0 additions & 20 deletions examples/nextjs/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"preview": "vite preview",
"test": "vitest",
"sb": "start-storybook -p 6006 --no-open",
"build:sb": "build-storybook"
"build-storybook": "build-storybook"
},
"devDependencies": {
"@babel/core": "^7.17.12",
Expand Down
Loading

0 comments on commit c3ff6e5

Please sign in to comment.