Skip to content

Commit

Permalink
ci(improve): add prepare step
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Oct 19, 2023
1 parent 8c26e7b commit 7f94a7c
Show file tree
Hide file tree
Showing 5 changed files with 345 additions and 344 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
name: Build and Test
name: Build and test
timeout-minutes: 15
runs-on: ubuntu-latest

Expand Down Expand Up @@ -36,5 +36,8 @@ jobs:
- name: Build
run: pnpm build

- name: Build prepare
run: pnpm build:prepare

- name: Test
run: pnpm test
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
release:
name: Build and release
permissions:
id-token: write
contents: write
Expand All @@ -30,10 +31,13 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i
- name: Install dependencies
run: pnpm install

- name: PNPM build
- name: Build prepare
run: pnpm build:prepare

- name: Build
run: pnpm run build

- name: Publish to NPM
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
],
"scripts": {
"build": "turbo run build",
"build:prepare": "turbo run build:prepare",
"build:docs": "pnpm -r --filter=\"./docs\" run build:docs",
"build:examples": "pnpm -r --filter=\"./examples\" run build:example",
"build:force": "turbo run build --force",
Expand Down
Loading

0 comments on commit 7f94a7c

Please sign in to comment.