From 1bd3c1f382491d8b066b570488fd4679ec32f8ab Mon Sep 17 00:00:00 2001 From: Errilaz Date: Sat, 2 May 2026 00:38:56 +0200 Subject: [PATCH] move release to checks --- .../.forgejo/workflows/checks.yml | 14 +++++++++++++ templates/tools-oxc/oxlint.config.ts | 2 +- .../.forgejo/workflows/release.yml | 21 ------------------- 3 files changed, 15 insertions(+), 22 deletions(-) delete mode 100644 templates/tools-semantic-release/.forgejo/workflows/release.yml diff --git a/templates/tools-checks/.forgejo/workflows/checks.yml b/templates/tools-checks/.forgejo/workflows/checks.yml index 3d72890..cdd66d8 100644 --- a/templates/tools-checks/.forgejo/workflows/checks.yml +++ b/templates/tools-checks/.forgejo/workflows/checks.yml @@ -11,3 +11,17 @@ 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 }} diff --git a/templates/tools-oxc/oxlint.config.ts b/templates/tools-oxc/oxlint.config.ts index 1936647..882bb32 100644 --- a/templates/tools-oxc/oxlint.config.ts +++ b/templates/tools-oxc/oxlint.config.ts @@ -41,7 +41,7 @@ export default defineConfig({ "prefer-for-of": "off", "switch-case-braces": "off", "require-module-specifiers": "off", - "no-namespace": "off", + "typescript/no-namespace": "off", }, ignorePatterns: ["**/*.gen.ts"], }) diff --git a/templates/tools-semantic-release/.forgejo/workflows/release.yml b/templates/tools-semantic-release/.forgejo/workflows/release.yml deleted file mode 100644 index a80d96f..0000000 --- a/templates/tools-semantic-release/.forgejo/workflows/release.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release - -on: - workflow_run: - workflows: ["Checks"] - branches: [main] - types: [completed] - -jobs: - release: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - 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 }}