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 713aac6
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-kiwis-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"electron-log-transport-datadog": patch
---

fix: more publish fixes
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Lint

on:
pull_request:
push:
branches:
- main

jobs:
lint:
Expand Down
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: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Test

on:
pull_request:
push:
branches:
- main

jobs:
test:
Expand Down Expand Up @@ -37,4 +34,4 @@ jobs:
- name: Run Package(s) Tests
run: |
pnpm run test
pnpm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ yarn-error.log*
.DS_Store
*.pem
.idea/
.pnpm-store/
6 changes: 4 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
"*.config.*",
"*.json",
"tsconfig.json",
".turbo"
".turbo",
"dist/*",
".pnpm-store/*"
]
},
"linter": {
"enabled": true,
"ignore": ["vendor/*"],
"ignore": ["vendor/*", "dist/*", ".pnpm-store/*"],
"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 713aac6

Please sign in to comment.