Skip to content

Commit

Permalink
Merge pull request #106 from chromaui/fix-ci
Browse files Browse the repository at this point in the history
Fix CI config
  • Loading branch information
ghengeveld authored Mar 4, 2024
2 parents bb9fe1d + 128bbbf commit 48dd9f6
Show file tree
Hide file tree
Showing 6 changed files with 595 additions and 697 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check PR Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: chromaui/pr-label-checker-action@main
with:
one-of: |
major, minor, patch
release, skip-release
none-of: DO NOT MERGE
8 changes: 5 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: yarn
- name: Publish to Chromatic
uses: chromaui/action-next@v1
uses: chromaui/action@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: 'build:storybook'
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 16.x
uses: actions/setup-node@v1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: latest

- name: Cache node modules
uses: actions/cache@v1
Expand Down
3 changes: 1 addition & 2 deletions chromatic.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"buildScriptName": "build:storybook",
"projectId": "Project:6008aabce49a640021858011",
"projectToken": "uskf6kz75lb"
"projectId": "Project:6008aabce49a640021858011"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@storybook/testing-library": "^0.0.13",
"@storybook/types": "^7.4.6",
"@types/jest": "^29.2.4",
"auto": "^10.16.8",
"auto": "^11.1.1",
"concurrently": "^5.3.0",
"jest": "^27.5.1",
"react": "^17.0.1",
Expand Down
Loading

0 comments on commit 48dd9f6

Please sign in to comment.