ci: configure workflows
This commit is contained in:
parent
968d6d639d
commit
4cb8f86824
5 changed files with 42 additions and 11 deletions
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
|
@ -19,6 +19,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- run: pnpm install --ignore-scripts
|
- run: pnpm install --ignore-scripts
|
||||||
|
- run: pnpm wxt prepare
|
||||||
- run: pnpm run lint
|
- run: pnpm run lint
|
||||||
- run: pnpm run tsc
|
- run: pnpm run tsc
|
||||||
|
|
||||||
|
@ -34,7 +35,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- run: pnpm install --ignore-scripts
|
- run: pnpm install --ignore-scripts
|
||||||
- run: pnpm zip
|
|
||||||
- run: pnpx semantic-release
|
- run: pnpx semantic-release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.WEB_CHAT_GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.WEB_CHAT_GITHUB_TOKEN }}
|
||||||
|
|
19
.releaserc
19
.releaserc
|
@ -1,11 +1,26 @@
|
||||||
{
|
{
|
||||||
"branches": ["master"],
|
"branches": [
|
||||||
|
"master"
|
||||||
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
"@semantic-release/changelog",
|
"@semantic-release/changelog",
|
||||||
"@semantic-release/github",
|
"@semantic-release/github",
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"prepareCmd": "pnpm run pack:chrome"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"assets": [
|
||||||
|
{
|
||||||
|
"path": ".output/web-chat-{{nextRelease.version}}-chrome.zip",
|
||||||
|
"label": "Release ZIP"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"@semantic-release/git"
|
"@semantic-release/git"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,19 +6,17 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "wxt",
|
"dev": "wxt",
|
||||||
"dev:server": "y-webrtc-signaling",
|
|
||||||
"dev:firefox": "wxt -b firefox",
|
"dev:firefox": "wxt -b firefox",
|
||||||
"build": "wxt build",
|
"build": "wxt build",
|
||||||
"build:firefox": "wxt build -b firefox",
|
"build:firefox": "wxt build -b firefox",
|
||||||
"pack": "cross-env NODE_ENV=production run-p pack:*",
|
"pack": "cross-env NODE_ENV=production run-p pack:*",
|
||||||
"pack:zip": "wxt zip",
|
"pack:chrome": "wxt zip -b firefox",
|
||||||
"pack:firefox": "wxt zip -b firefox",
|
"pack:firefox": "wxt zip -b firefox",
|
||||||
"lint": "eslint --fix --flag unstable_ts_config",
|
"lint": "eslint --fix --flag unstable_ts_config",
|
||||||
"clear": "rimraf .output",
|
"clear": "rimraf .output",
|
||||||
"tsc": "tsc --noEmit",
|
"tsc": "tsc --noEmit",
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"postinstall": "wxt prepare",
|
"postinstall": "wxt prepare"
|
||||||
"zip": "wxt zip"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -97,6 +95,7 @@
|
||||||
"@eslint-react/eslint-plugin": "^1.14.2",
|
"@eslint-react/eslint-plugin": "^1.14.2",
|
||||||
"@eslint/js": "^9.11.1",
|
"@eslint/js": "^9.11.1",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
|
"@semantic-release/exec": "^6.0.3",
|
||||||
"@semantic-release/git": "^10.0.1",
|
"@semantic-release/git": "^10.0.1",
|
||||||
"@types/eslint": "^9.6.1",
|
"@types/eslint": "^9.6.1",
|
||||||
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
||||||
|
|
|
@ -159,6 +159,9 @@ importers:
|
||||||
'@semantic-release/changelog':
|
'@semantic-release/changelog':
|
||||||
specifier: ^6.0.3
|
specifier: ^6.0.3
|
||||||
version: 6.0.3(semantic-release@24.1.1(typescript@5.6.2))
|
version: 6.0.3(semantic-release@24.1.1(typescript@5.6.2))
|
||||||
|
'@semantic-release/exec':
|
||||||
|
specifier: ^6.0.3
|
||||||
|
version: 6.0.3(semantic-release@24.1.1(typescript@5.6.2))
|
||||||
'@semantic-release/git':
|
'@semantic-release/git':
|
||||||
specifier: ^10.0.1
|
specifier: ^10.0.1
|
||||||
version: 10.0.1(semantic-release@24.1.1(typescript@5.6.2))
|
version: 10.0.1(semantic-release@24.1.1(typescript@5.6.2))
|
||||||
|
@ -1865,6 +1868,12 @@ packages:
|
||||||
resolution: {integrity: sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==}
|
resolution: {integrity: sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
|
'@semantic-release/exec@6.0.3':
|
||||||
|
resolution: {integrity: sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ==}
|
||||||
|
engines: {node: '>=14.17'}
|
||||||
|
peerDependencies:
|
||||||
|
semantic-release: '>=18.0.0'
|
||||||
|
|
||||||
'@semantic-release/git@10.0.1':
|
'@semantic-release/git@10.0.1':
|
||||||
resolution: {integrity: sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==}
|
resolution: {integrity: sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==}
|
||||||
engines: {node: '>=14.17'}
|
engines: {node: '>=14.17'}
|
||||||
|
@ -8644,6 +8653,18 @@ snapshots:
|
||||||
|
|
||||||
'@semantic-release/error@4.0.0': {}
|
'@semantic-release/error@4.0.0': {}
|
||||||
|
|
||||||
|
'@semantic-release/exec@6.0.3(semantic-release@24.1.1(typescript@5.6.2))':
|
||||||
|
dependencies:
|
||||||
|
'@semantic-release/error': 3.0.0
|
||||||
|
aggregate-error: 3.1.0
|
||||||
|
debug: 4.3.7
|
||||||
|
execa: 5.1.1
|
||||||
|
lodash: 4.17.21
|
||||||
|
parse-json: 5.2.0
|
||||||
|
semantic-release: 24.1.1(typescript@5.6.2)
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
'@semantic-release/git@10.0.1(semantic-release@24.1.1(typescript@5.6.2))':
|
'@semantic-release/git@10.0.1(semantic-release@24.1.1(typescript@5.6.2))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@semantic-release/error': 3.0.0
|
'@semantic-release/error': 3.0.0
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"include": ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"]
|
|
||||||
}
|
|
Loading…
Reference in a new issue