Skip to content

Commit

Permalink
fix: more publish fixes (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity committed Apr 8, 2024
1 parent 81b32c8 commit 0d5db5b
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 13 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Snapshot Release
on:
workflow_dispatch:

env:
PNPM_CACHE_FOLDER: .pnpm-store

jobs:
snapshot:
name: Snapshot Release
Expand All @@ -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: |
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

env:
PNPM_CACHE_FOLDER: .pnpm-store

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
Expand All @@ -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
Expand All @@ -32,4 +50,4 @@ jobs:
title: 'chore: release package(s)'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"*.config.*",
"*.json",
"tsconfig.json",
".turbo"
".turbo",
"dist/*"
]
},
"linter": {
"enabled": true,
"ignore": ["vendor/*"],
"ignore": ["vendor/*", "dist/*"],
"rules": {
"performance": {
"noDelete": "off"
Expand Down
3 changes: 1 addition & 2 deletions packages/datadog-transport-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions packages/electron-log-transport-datadog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions packages/pino-datadog-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0d5db5b

Please sign in to comment.