ci: add semantic-release

This commit is contained in:
Derrick Hammer 2023-08-13 03:04:14 -04:00
parent f419c2c838
commit c55b2c25f2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 99 additions and 20 deletions

73
.releaserc.json Normal file
View File

@ -0,0 +1,73 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"breaking": true,
"release": "major"
},
{
"revert": true,
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "dep",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"CHANGELOG.md",
"npm-shrinkwrap.json"
]
}
]
],
"branches": [
"master",
{
"name": "develop",
"prerelease": true
},
{
"name": "develop-*",
"prerelease": true
}
]
}

View File

@ -1,22 +1,28 @@
{
"name": "lume-web3extension",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "TAILWIND_MODE=watch astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/image": "^0.16.6",
"@astrojs/react": "^2.1.1",
"@astrojs/tailwind": "^3.1.1",
"astro": "^2.3.2",
"autoprefixer": "^10.4.14",
"sass": "^1.62.1",
"tailwindcss": "^3.3.2"
}
"name": "lume-web3extension",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "TAILWIND_MODE=watch astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"semantic-release": "semantic-release"
},
"dependencies": {
"@astrojs/image": "^0.16.6",
"@astrojs/react": "^2.1.1",
"@astrojs/tailwind": "^3.1.1",
"astro": "^2.3.2",
"autoprefixer": "^10.4.14",
"sass": "^1.62.1",
"tailwindcss": "^3.3.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^10.0.4",
"@semantic-release/release-notes-generator": "^11.0.4",
"semantic-release": "^21.0.7"
}
}