diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index dc13c69..0428812 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -3,6 +3,9 @@ name: Snapshot Release on: workflow_dispatch: +env: + PNPM_CACHE_FOLDER: .pnpm-store + jobs: snapshot: name: Snapshot Release @@ -14,10 +17,25 @@ jobs: - name: Use pnpm uses: pnpm/action-setup@v3 with: - version: 8 + version: 8.x + + - name: setup pnpm config + run: pnpm config set store-dir $PNPM_CACHE_FOLDER - name: Install Dependencies - run: pnpm install --frozen-lockfile --prefer-offline + run: pnpm install --frozen-lockfile + + - name: Build workspace packages + run: pnpm build + + - name: Run package checking + run: pnpm run lint:packages + + - name: Run type checking + run: pnpm run typecheck + + - name: Run linting + run: pnpm run lint - name: Create Snapshot Release run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f2a686..ccb45dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: branches: - main +env: + PNPM_CACHE_FOLDER: .pnpm-store + concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: @@ -18,10 +21,25 @@ jobs: - name: Use pnpm uses: pnpm/action-setup@v3 with: - version: 8 + version: 8.x + + - name: setup pnpm config + run: pnpm config set store-dir $PNPM_CACHE_FOLDER - name: Install Dependencies - run: pnpm install --frozen-lockfile --prefer-offline + run: pnpm install --frozen-lockfile + + - name: Build workspace packages + run: pnpm build + + - name: Run package checking + run: pnpm run lint:packages + + - name: Run type checking + run: pnpm run typecheck + + - name: Run linting + run: pnpm run lint - name: Create Release Pull Request uses: changesets/action@v1 @@ -32,4 +50,4 @@ jobs: title: 'chore: release package(s)' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/biome.json b/biome.json index 9b9440b..062290b 100644 --- a/biome.json +++ b/biome.json @@ -13,12 +13,13 @@ "*.config.*", "*.json", "tsconfig.json", - ".turbo" + ".turbo", + "dist/*" ] }, "linter": { "enabled": true, - "ignore": ["vendor/*"], + "ignore": ["vendor/*", "dist/*"], "rules": { "performance": { "noDelete": "off" diff --git a/packages/datadog-transport-common/package.json b/packages/datadog-transport-common/package.json index fe2a124..15702d9 100644 --- a/packages/datadog-transport-common/package.json +++ b/packages/datadog-transport-common/package.json @@ -22,8 +22,7 @@ "format": "biome format src --write && biome format test --write", "lint": "biome lint src && biome lint test", "lint:check": "biome check --apply-unsafe src && check --apply-unsafe test", - "typecheck": "tsc --noEmit", - "prepublishOnly": "pnpm run build" + "typecheck": "tsc --noEmit" }, "publishConfig": { "access": "public" diff --git a/packages/electron-log-transport-datadog/package.json b/packages/electron-log-transport-datadog/package.json index e138f8d..981db37 100644 --- a/packages/electron-log-transport-datadog/package.json +++ b/packages/electron-log-transport-datadog/package.json @@ -22,8 +22,7 @@ "format": "biome format src --write && biome format test --write", "lint": "biome lint src && biome lint test", "lint:check": "biome check --apply-unsafe src && check --apply-unsafe test", - "typecheck": "tsc --noEmit", - "prepublishOnly": "pnpm run build" + "typecheck": "tsc --noEmit" }, "publishConfig": { "access": "public" diff --git a/packages/pino-datadog-transport/package.json b/packages/pino-datadog-transport/package.json index 2bffe8a..693d569 100755 --- a/packages/pino-datadog-transport/package.json +++ b/packages/pino-datadog-transport/package.json @@ -21,8 +21,7 @@ "format": "biome format src --write && biome format test --write", "lint": "biome lint src && biome lint test", "lint:check": "biome check --apply-unsafe src && check --apply-unsafe test", - "typecheck": "tsc --noEmit", - "prepublishOnly": "pnpm run build" + "typecheck": "tsc --noEmit" }, "repository": { "type": "git",