Skip to content

Commit

Permalink
👷 exclude test code from release/deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Jan 15, 2025
1 parent 124a2a7 commit 77a9824
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Remove test code
run: >
find . -type f -name '*.test.ts' -delete
rm vitest.config.ts
- uses: superfly/flyctl-actions/setup-flyctl@master

- run: flyctl deploy --remote-only
Expand Down
8 changes: 7 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json", "package-lock.json"],
"assets": [
"!**/*.test.ts",
"!vitest.config.ts",
"CHANGELOG.md",
"package-lock.json",
"package.json"
],
"message": "🔖 release ${nextRelease.version}"
}
],
Expand Down

0 comments on commit 77a9824

Please sign in to comment.