separate release and mirror
This commit is contained in:
parent
bd354fb57d
commit
632fbe9cb1
10 changed files with 30 additions and 17 deletions
|
|
@ -40,6 +40,7 @@ runs:
|
|||
GITEA_URL: ${{ inputs.gitea-url }}
|
||||
NPM_TOKEN: ${{ inputs.npm-token }}
|
||||
run: |
|
||||
# TODO: use bun
|
||||
if node -e "const p=require('./package.json'); process.exit(p.workspaces ? 0 : 1)"; then
|
||||
bunx multi-semantic-release
|
||||
else
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"workspaces": {
|
||||
"catalog": {
|
||||
"@types/bun": "1.3.11"
|
||||
"@types/bun": "1.3.12"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
|||
27
templates/release/.forgejo/workflows/checks.yml
Normal file
27
templates/release/.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,9 +1,7 @@
|
|||
{
|
||||
"inherits": [
|
||||
"tools-oxc",
|
||||
"tools-mirror",
|
||||
"tools-commitlint",
|
||||
"tools-semantic-release",
|
||||
"tools-checks"
|
||||
]
|
||||
}
|
||||
|
|
@ -11,17 +11,3 @@ jobs:
|
|||
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/tools-commitlint/.husky/commit-msg
Normal file
1
templates/tools-commitlint/.husky/commit-msg
Normal file
|
|
@ -0,0 +1 @@
|
|||
bunx --no-install -- commitlint --edit $1
|
||||
Loading…
Add table
Add a link
Reference in a new issue