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
This commit is contained in:
parent
78ebe7df4a
commit
10115f4d80
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
update release workflow
|
|
@ -16,11 +16,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, macos-latest]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
|
@ -28,7 +24,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Setup Node.js ${{ matrix.node-version }}
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
|
|
@ -14,7 +14,11 @@ env:
|
||||||
TAMAGUI_TARGET: 'web'
|
TAMAGUI_TARGET: 'web'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
ci:
|
||||||
|
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow
|
||||||
|
uses: ./.github/workflows/ci.yml
|
||||||
release:
|
release:
|
||||||
|
needs: ci
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -23,9 +27,6 @@ jobs:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
- run: yarn typecheck
|
|
||||||
- run: yarn lint && yarn format --check
|
|
||||||
- run: yarn test
|
|
||||||
- uses: changesets/action@v1
|
- uses: changesets/action@v1
|
||||||
id: changesets
|
id: changesets
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"ms-vscode.hexeditor",
|
"ms-vscode.hexeditor",
|
||||||
"mikestead.dotenv",
|
"mikestead.dotenv",
|
||||||
"bradlc.vscode-tailwindcss",
|
"bradlc.vscode-tailwindcss",
|
||||||
"vitest.explorer"
|
"vitest.explorer",
|
||||||
|
"github.vscode-github-actions"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue