Skip to content

Commit

Permalink
Use changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 29, 2024
1 parent 378607f commit c0f6b05
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
42 changes: 19 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
test:
name: Run tests
name: 🧪 Run tests
runs-on: ubuntu-latest
outputs:
react-email: ${{ steps.filter.outputs.react-email }}
Expand All @@ -16,15 +16,15 @@ jobs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
- name: 📦 Install dependencies
run: bun install
- name: 🔍 Run type checking
run: bun run typecheck
# - name: 🔬 Run linting
# run: bun run lint
- name: 🧪 Run unit tests
run: bun run test
- name: Filter changes
- name: 🔍 Filter changes
id: filter
uses: dorny/paths-filter@v2
with:
Expand All @@ -35,7 +35,7 @@ jobs:
- 'packages/cli/src/**'
publish-cli:
name: Publish CLI
name: 🚀 Publish CLI
if: needs.test.outputs.cli == 'true'
needs: [test]
runs-on: ubuntu-latest
Expand All @@ -49,25 +49,23 @@ jobs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
- name: 📦 Install dependencies
run: bun install
- name: Build
- name: 🏗️ Build
working-directory: packages/cli
run: bun run build
- name: Create and publish versions
- name: 📝 Create and publish versions
working-directory: packages/cli
uses: changesets/action@v1
with:
version: npx changeset version
commit: "chore: update versions"
title: "chore: update versions"
publish: npx changeset publish
run: |
bunx changeset version
git commit -am "chore: update versions"
bunx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-react-email:
name: Publish React Email
name: 🚀 Publish React Email
if: needs.test.outputs.react-email == 'true'
needs: [test]
runs-on: ubuntu-latest
Expand All @@ -81,19 +79,17 @@ jobs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
- name: 📦 Install dependencies
run: bun install
- name: Build
- name: 🏗️ Build
working-directory: packages/react-email
run: bun run build
- name: Create and publish versions
- name: 📝 Create and publish versions
working-directory: packages/react-email
uses: changesets/action@v1
with:
version: npx changeset version
commit: "chore: update versions"
title: "chore: update versions"
publish: npx changeset publish
run: |
bunx changeset version
git commit -am "chore: update versions"
bunx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@changesets/cli": "^2.27.11",
"@types/bun": "^1.1.14",
"@types/node": "^22.10.2",
"turbo": "2.3.3",
Expand Down

0 comments on commit c0f6b05

Please sign in to comment.