From b3666b4320982b3dc027611189f007b39ca0a999 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Sun, 3 Nov 2024 13:21:28 -0600 Subject: [PATCH] Fixed workflows --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++---- .github/workflows/release.yaml | 14 +++++++------- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94dd28f..429fe33 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,27 @@ on: jobs: ci: name: CI - uses: zen-fs/core/.github/workflows/ci.yaml@main - permissions: - contents: read - id-token: write + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install dependencies + run: npm install + + - name: Formatting + run: npm run format:check + + - name: Linting + run: npm run lint + + - name: Build + run: npm run build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 613f537..ed454a7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,17 +1,17 @@ name: Release - on: release: types: [created] - jobs: ci: name: CI - uses: zen-fs/core/.github/workflows/ci.yaml@main - permissions: - contents: read - id-token: write + uses: ./.github/workflows/ci.yaml + docs: + name: Docs + uses: zen-fs/core/.github/workflows/deploy-docs.yaml@main + needs: ci release: name: Release - uses: zen-fs/core/.github/workflows/release.yaml@main + uses: zen-fs/core/.github/workflows/release-common.yaml@main + needs: ci secrets: inherit