feat(regime)
This commit is contained in:
commit
2be7ec6836
62 changed files with 1817 additions and 0 deletions
27
templates/workflow/publish-npm/.forgejo/workflows/checks.yml
Normal file
27
templates/workflow/publish-npm/.forgejo/workflows/checks.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: Checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["*"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://${{ secrets.FORGE_TOKEN }}@code.quickbasic.org/sigitex/regime/actions/checks@main
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: checks
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: https://${{ secrets.FORGE_TOKEN }}@code.quickbasic.org/sigitex/regime/actions/release@main
|
||||
with:
|
||||
gitea-token: ${{ secrets.FORGE_TOKEN }}
|
||||
gitea-url: https://code.quickbasic.org
|
||||
npm-token: ${{ secrets.NPM_TOKEN }}
|
||||
1
templates/workflow/publish-npm/.regime-template.json
Normal file
1
templates/workflow/publish-npm/.regime-template.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
8
templates/workflow/publish-npm/package.json
Normal file
8
templates/workflow/publish-npm/package.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"semantic-release": "^25.0.3",
|
||||
"multi-semantic-release": "^3.1.0",
|
||||
"@markwylde/semantic-release-gitea": "^2.2.0",
|
||||
"@semantic-release/exec": "^7.0.3"
|
||||
}
|
||||
}
|
||||
16
templates/workflow/publish-npm/release.config.cjs
Normal file
16
templates/workflow/publish-npm/release.config.cjs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* @type {import('semantic-release').GlobalConfig}
|
||||
*/
|
||||
module.exports = {
|
||||
repositoryUrl: "https://code.quickbasic.org/sigitex/<<repo>>.git",
|
||||
branches: ["main"],
|
||||
plugins: [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
["@semantic-release/exec", {
|
||||
prepareCmd: "npm pkg set version=${nextRelease.version}",
|
||||
publishCmd: "npm publish --access public",
|
||||
}],
|
||||
"@markwylde/semantic-release-gitea",
|
||||
],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue