Skip to content

Commit

Permalink
ci: build before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsdaniels committed Mar 27, 2024
1 parent 5e99a34 commit ef5ce7b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-taxis-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codedazur/react-tracking": patch
---

The dist folder is now included in the release.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Deploy Apps
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm run deploy
npm run deploy:apps
version:
name: Publish Packages
Expand All @@ -61,7 +61,7 @@ jobs:
uses: changesets/action@v1
with:
commit: "chore: publish"
publish: npm run publish
publish: npm run publish:packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"build": "turbo run build",
"build:apps": "turbo run build --filter=@apps/*",
"build:packages": "turbo run build --filter=@codedazur/*",
"deploy": "turbo run deploy --filter=@apps/infrastructure",
"destroy": "turbo run destroy --filter=@apps/infrastructure",
"prepublishOnly": "npm run build:packages",
"publish": "changeset publish"
"deploy:apps": "turbo run deploy --filter=@apps/infrastructure",
"destroy:apps": "turbo run destroy --filter=@apps/infrastructure",
"prepublish:packages": "npm run build:packages",
"publish:packages": "changeset publish"
},
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
Expand Down
6 changes: 0 additions & 6 deletions packages/react-tracking/utilities/createStorybookTracker.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { Tracker } from "../components/TrackingProvider";

declare global {
interface Window {
dataLayer: Array<Record<string, unknown>>;
}
}

export async function createStorybookTracker({
name = "Tracker",
}: { name?: string } = {}): Promise<Tracker> {
Expand Down

0 comments on commit ef5ce7b

Please sign in to comment.