Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 29, 2024
1 parent f81b736 commit eb2e446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
test:
name: 🧪 Run tests
runs-on: ubuntu-latest
outputs:
react-email-changed: ${{ env.react-email-changed }}
cli-changed: ${{ env.cli-changed }}

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
Expand All @@ -26,26 +22,11 @@ jobs:
# run: bun run lint
- name: 🧪 Run unit tests
run: bun run test
- name: Check package changes
id: check-changes
run: |
npx changeset status > status.txt
if grep -q 'packages/react-email' status.txt; then
echo "react-email-changed=true" >> $GITHUB_ENV
else
echo "react-email-changed=false" >> $GITHUB_ENV
fi
if grep -q 'languine' status.txt; then
echo "cli-changed=true" >> $GITHUB_ENV
else
echo "cli-changed=false" >> $GITHUB_ENV
fi

publish-cli:
name: 🚀 Publish CLI
needs: [test]
runs-on: ubuntu-latest
if: needs.test.outputs.cli-changed == 'true'
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -76,7 +57,6 @@ jobs:
name: 🚀 Publish React Email
needs: [test]
runs-on: ubuntu-latest
if: needs.test.outputs.react-email-changed == 'true'
permissions:
contents: write
pull-requests: write
Expand Down
6 changes: 3 additions & 3 deletions examples/expo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "my-app",
"main": "expo-router/entry",
"version": "1.0.2",
"version": "1.0.1",
"private": true,
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
Expand Down Expand Up @@ -52,6 +53,5 @@
"jest-expo": "~52.0.2",
"react-test-renderer": "18.3.1",
"typescript": "^5.3.3"
},
"private": true
}
}

0 comments on commit eb2e446

Please sign in to comment.