From 5a48ef711a90788a9e022390bf30f671e35f1687 Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Mon, 9 Sep 2024 08:00:16 +0200 Subject: [PATCH] Recover ci scripts --- .github/workflows/ci.yml | 12 ++++++++++++ .github/workflows/docs.yml | 9 +++++++++ .github/workflows/push-dist.yml | 4 ++++ package.json | 1 - 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fe29f4c..4b5e9b63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,9 @@ jobs: - name: 'Install dependencies' run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps - name: Lint run: pnpm --filter ember-power-calendar lint @@ -54,6 +57,9 @@ jobs: - name: Install Dependencies run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps - name: Run Tests run: pnpm --filter test-app test:ember @@ -77,6 +83,9 @@ jobs: - name: Install Dependencies run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps - name: Run Tests run: pnpm --filter test-app test:ember @@ -118,6 +127,9 @@ jobs: - name: Install Dependencies run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps - name: Run Tests env: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 602c3973..d9130d3a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,6 +31,9 @@ jobs: - name: 'Install dependencies' run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps - name: Lint run: pnpm --filter docs lint @@ -56,6 +59,9 @@ jobs: - name: Install Dependencies run: pnpm install --frozen-lockfile + - run: pnpm build + - run: pnpm i -f # re-sync injected deps + - name: Run Tests run: pnpm --filter docs test:ember @@ -80,6 +86,9 @@ jobs: - name: Install Dependencies run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps - name: Run Tests run: pnpm --filter docs build diff --git a/.github/workflows/push-dist.yml b/.github/workflows/push-dist.yml index 07f0e4dc..89ddaf7a 100644 --- a/.github/workflows/push-dist.yml +++ b/.github/workflows/push-dist.yml @@ -28,6 +28,10 @@ jobs: cache: 'pnpm' - name: Install Dependencies run: pnpm install --frozen-lockfile + + - run: pnpm build + - run: pnpm i -f # re-sync injected deps + - uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0 with: branch: dist diff --git a/package.json b/package.json index a32c4463..6177b464 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "build:docs": "pnpm run --filter docs build", "lint": "pnpm run --filter '*' lint", "lint:fix": "pnpm run --filter '*' lint:fix", - "prepare": "pnpm run build", "start": "concurrently 'pnpm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow", "start:addon": "pnpm run --filter ember-power-calendar start --no-watch.clearScreen", "start:docs": "pnpm run --filter docs start --preserveWatchOutput",