Skip to content

Commit

Permalink
ci: fix changesets scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Nov 18, 2024
1 parent b6fa6c2 commit c47e021
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 67 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-crabs-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@orpc/shared": patch
---

chore: bump version
10 changes: 5 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- run: pnpm i

- run: pnpm run lint:check
- run: pnpm run lint

- run: pnpm run type:check

Expand Down Expand Up @@ -55,7 +55,8 @@ jobs:
with:
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
publish: pnpm run release:next
version: pnpm run changeset:version
publish: pnpm run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -81,9 +82,8 @@ jobs:

- run: pnpm i

- run: pnpm changeset version --snapshot next
- run: pnpm run changeset:version --snapshot next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish
run: pnpm run release:next
- run: pnpm run changeset:publish --tag next
4 changes: 2 additions & 2 deletions .github/workflows/pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
id: publish
continue-on-error: true
run: |
pnpm changeset version --snapshot unsafe-pr-${{ github.event.pull_request.number }}
pnpm run release:unsafe-pr
pnpm run changeset:version --snapshot unsafe-pr-${{ github.event.pull_request.number }}
pnpm run changeset:publish --tag unsafe-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion apps/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "next dev",
"start": "next start",
"postinstall": "fumadocs-mdx",
"type:check": "tsc -b && pnpm run build"
"type:check": "tsc -b"
},
"dependencies": {
"fumadocs-core": "14.4.0",
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --coverage --ui",
"lint:check": "pnpm biome check --error-on-warnings",
"lint:fix": "pnpm run lint:check --write",
"sherif:check": "pnpm dlx sherif",
"sherif:fix": "pnpm run sherif:check --fix",
"knip:check": "pnpm dlx knip --production",
"knip:fix": "pnpm run knip:check --fix --allow-remove-files",
"release:stable": "pnpm run build:packages && pnpm changeset publish",
"release:next": "pnpm run release:stable --tag next",
"release:unsafe-pr": "pnpm run release:stable --tag unsafe-pr"
"format": "pnpm biome format --error-on-warnings --fix",
"lint": "pnpm biome check --error-on-warnings",
"lint:fix": "pnpm run lint --write",
"sherif": "pnpm dlx sherif",
"sherif:fix": "pnpm run sherif --fix",
"knip": "pnpm dlx knip --production",
"knip:fix": "pnpm run knip --fix --allow-remove-files",
"changeset:version": "changeset version",
"postchangeset:version": "pnpm run format",
"changeset:publish": "pnpm run build:packages && pnpm changeset publish"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
Expand Down
9 changes: 2 additions & 7 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"url": "https://github.com/unnoq/unnoq.git",
"directory": "examples/typescript-vite-package"
},
"keywords": [
"unnoq"
],
"keywords": ["unnoq"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -36,10 +34,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"type:check": "tsc -b"
Expand Down
10 changes: 2 additions & 8 deletions packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
"url": "https://github.com/unnoq/orpc.git",
"directory": "packages/contract"
},
"keywords": [
"unnoq",
"orpc"
],
"keywords": ["unnoq", "orpc"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -37,10 +34,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "tsup --entry.index=src/index.ts --clean --sourcemap --splitting --format=esm --onSuccess='tsc -b --noCheck'",
"type:check": "tsc -b"
Expand Down
9 changes: 2 additions & 7 deletions packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"url": "https://github.com/unnoq/unnoq.git",
"directory": "examples/typescript-vite-package"
},
"keywords": [
"unnoq"
],
"keywords": ["unnoq"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -36,10 +34,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "tsup --entry.index=src/index.ts --clean --sourcemap --splitting --format=esm --onSuccess='tsc -b --noCheck'",
"type:check": "tsc -b"
Expand Down
9 changes: 2 additions & 7 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"url": "https://github.com/unnoq/unnoq.git",
"directory": "examples/typescript-vite-package"
},
"keywords": [
"unnoq"
],
"keywords": ["unnoq"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -36,10 +34,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"type:check": "tsc -b"
Expand Down
9 changes: 2 additions & 7 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"url": "https://github.com/unnoq/unnoq.git",
"directory": "examples/typescript-vite-package"
},
"keywords": [
"unnoq"
],
"keywords": ["unnoq"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -42,10 +40,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "tsup --entry.index=src/index.ts --entry.fetch=src/adapters/fetch.ts --clean --sourcemap --splitting --format=esm --onSuccess='tsc -b --noCheck'",
"type:check": "tsc -b"
Expand Down
9 changes: 2 additions & 7 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"url": "https://github.com/unnoq/unnoq.git",
"directory": "examples/typescript-vite-package"
},
"keywords": [
"unnoq"
],
"keywords": ["unnoq"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -42,10 +40,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"type:check": "tsc -b"
Expand Down
9 changes: 2 additions & 7 deletions packages/transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"url": "https://github.com/unnoq/unnoq.git",
"directory": "examples/typescript-vite-package"
},
"keywords": [
"unnoq"
],
"keywords": ["unnoq"],
"publishConfig": {
"access": "public",
"exports": {
Expand All @@ -36,10 +34,7 @@
"types": "./src/*.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"type:check": "tsc -b"
Expand Down

0 comments on commit c47e021

Please sign in to comment.