Skip to content

Commit

Permalink
feat: add semantic-release to auto-release versions (#12)
Browse files Browse the repository at this point in the history
* chore: add release workflow and package configuration

* Update release.yml

* Update package.json

---------

Co-authored-by: Yang Luo <[email protected]>
  • Loading branch information
HashCookie and hsluoyz authored Aug 9, 2024
1 parent 4c182f3 commit f356549
Show file tree
Hide file tree
Showing 3 changed files with 3,419 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: yarn semantic-release
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "casibase-widget",
"version": "1.0.0",
"description": "Casibase Chat Widget",
"main": "casibase.js",
"scripts": {
"semantic-release": "semantic-release"
},
"release": {
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/git"
]
},
"repository": {
"type": "git",
"url": "https://github.com/casibase/casibase-widget"
},
"author": "Casibase",
"license": "Apache-2.0",
"devDependencies": {
"semantic-release": "^19.0.5",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.0"
}
}

Loading

0 comments on commit f356549

Please sign in to comment.