ci: added semantic versioning

This commit is contained in:
ThinLiquid 2024-01-16 12:45:29 +00:00
parent f06399516c
commit 5f2f79bb2f
No known key found for this signature in database
GPG key ID: 17538DC3DF6A7387
4 changed files with 6413 additions and 2 deletions

34
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Release
on:
push:
branches: [master]
permissions:
contents: read # for checkout
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release

8
.releaserc Normal file
View file

@ -0,0 +1,8 @@
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}

6368
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,8 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"serve": "vite dev"
"serve": "vite dev",
"commit": "cz"
},
"keywords": [],
"author": "",
@ -18,7 +19,9 @@
"@types/node": "^20.11.3",
"@types/uuid": "^9.0.5",
"@types/web": "^0.0.117",
"commitizen": "^4.3.0",
"less": "^4.2.0",
"semantic-release": "^23.0.0",
"ts-standard": "^12.0.2",
"typedoc": "^0.25.3",
"typedoc-material-theme": "^1.0.2",