Skip to content

Commit

Permalink
ci: add semantic-release config
Browse files Browse the repository at this point in the history
* ci: add npm package info
* ci: update release workflow to build styles
  • Loading branch information
Chai Landau committed Feb 14, 2024
1 parent 53c7e4f commit 1ea7346
Show file tree
Hide file tree
Showing 7 changed files with 2,216 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build
- name: Build styles
run: yarn build:styles

- name: Release
uses: cycjimmy/semantic-release-action@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# production
/build
/dist

# misc
.DS_Store
Expand Down
16 changes: 16 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]"
}
],
"@semantic-release/npm"
]
}
Binary file added demo-design-system-0.1.0.tgz
Binary file not shown.
1 change: 0 additions & 1 deletion dist/styles.css

This file was deleted.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"react-dom": "^18"
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.6",
"@semantic-release/npm": "^11.0.2",
"@semantic-release/release-notes-generator": "^12.1.0",
"@storybook/addon-essentials": "^7.6.10",
"@storybook/addon-interactions": "^7.6.10",
"@storybook/addon-links": "^7.6.10",
Expand All @@ -41,11 +46,15 @@
"postcss-import": "^16.0.0",
"prettier": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.5.11",
"semantic-release": "^23.0.2",
"storybook": "^7.6.10",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"resolutions": {
"jackspeak": "2.1.1"
}
},
"files": [
"./dist/styles.css"
]
}
Loading

0 comments on commit 1ea7346

Please sign in to comment.