Skip to content

Commit

Permalink
update release workflow (#575)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
felicio committed Jul 24, 2024
1 parent 78ebe7d commit 10115f4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-laws-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

---

update release workflow
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ 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
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"ms-vscode.hexeditor",
"mikestead.dotenv",
"bradlc.vscode-tailwindcss",
"vitest.explorer"
"vitest.explorer",
"github.vscode-github-actions"
]
}

0 comments on commit 10115f4

Please sign in to comment.