Skip to content

Commit 10115f4

Browse files
authored
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
1 parent 78ebe7d commit 10115f4

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.changeset/olive-laws-exercise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
---
4+
5+
update release workflow

.github/workflows/ci.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ jobs:
1616
build:
1717
name: Build and Test
1818
timeout-minutes: 15
19-
runs-on: ${{ matrix.os }}
20-
21-
strategy:
22-
matrix:
23-
os: [ubuntu-latest, macos-latest]
19+
runs-on: ubuntu-latest
2420

2521
steps:
2622
- name: Check out code
2723
uses: actions/checkout@v3
2824
with:
2925
fetch-depth: 2
3026

31-
- name: Setup Node.js ${{ matrix.node-version }}
27+
- name: Setup Node.js
3228
uses: actions/setup-node@v3
3329
with:
3430
node-version: 18

.github/workflows/release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ env:
1414
TAMAGUI_TARGET: 'web'
1515

1616
jobs:
17+
ci:
18+
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow
19+
uses: ./.github/workflows/ci.yml
1720
release:
21+
needs: ci
1822
runs-on: ubuntu-latest
1923
steps:
2024
- uses: actions/checkout@v3
@@ -23,9 +27,6 @@ jobs:
2327
node-version: 18
2428
- run: yarn install --frozen-lockfile
2529
- run: yarn build
26-
- run: yarn typecheck
27-
- run: yarn lint && yarn format --check
28-
- run: yarn test
2930
- uses: changesets/action@v1
3031
id: changesets
3132
with:

.vscode/extensions.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"ms-vscode.hexeditor",
77
"mikestead.dotenv",
88
"bradlc.vscode-tailwindcss",
9-
"vitest.explorer"
9+
"vitest.explorer",
10+
"github.vscode-github-actions"
1011
]
1112
}

0 commit comments

Comments
 (0)