From 10115f4d8013742a0a5b468fe956b2f41ed32061 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Wed, 24 Jul 2024 14:39:54 +0200 Subject: [PATCH] update release workflow (#575) * chore: add github.vscode-github-actions extension to recommended extensions * chore: run job on single machine * chore: Add reusable workflow for CI * Create olive-laws-exercise.md * chore: Add dependency on ci workflow for release workflow --- .changeset/olive-laws-exercise.md | 5 +++++ .github/workflows/ci.yml | 8 ++------ .github/workflows/release.yml | 7 ++++--- .vscode/extensions.json | 3 ++- 4 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 .changeset/olive-laws-exercise.md diff --git a/.changeset/olive-laws-exercise.md b/.changeset/olive-laws-exercise.md new file mode 100644 index 00000000..23797720 --- /dev/null +++ b/.changeset/olive-laws-exercise.md @@ -0,0 +1,5 @@ +--- + +--- + +update release workflow diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 100a23a6..0bf4c9ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,7 @@ jobs: build: name: Build and Test timeout-minutes: 15 - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest, macos-latest] + runs-on: ubuntu-latest steps: - name: Check out code @@ -28,7 +24,7 @@ jobs: with: fetch-depth: 2 - - name: Setup Node.js ${{ matrix.node-version }} + - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32a418ea..7dd5d0ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,11 @@ env: TAMAGUI_TARGET: 'web' jobs: + ci: + # https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow + uses: ./.github/workflows/ci.yml release: + needs: ci runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -23,9 +27,6 @@ jobs: node-version: 18 - run: yarn install --frozen-lockfile - run: yarn build - - run: yarn typecheck - - run: yarn lint && yarn format --check - - run: yarn test - uses: changesets/action@v1 id: changesets with: diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 5927e919..279750f4 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -6,6 +6,7 @@ "ms-vscode.hexeditor", "mikestead.dotenv", "bradlc.vscode-tailwindcss", - "vitest.explorer" + "vitest.explorer", + "github.vscode-github-actions" ] }