Skip to content

Commit

Permalink
ci: manually release & uninstall changesets (#41)
Browse files Browse the repository at this point in the history
* ci: manually release workflow

* ci: remove changesets and clean

* ci: publish with provenance

* ci: dedupe & improve

* chore: bump to v0.5.0

* chore: changelog link to github release

* build: update peer dependencies

this block by changsets but now it has ben uninstalled
  • Loading branch information
unnoq authored Nov 30, 2024
1 parent 255eb59 commit 033f793
Show file tree
Hide file tree
Showing 26 changed files with 138 additions and 1,248 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

62 changes: 1 addition & 61 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:

- run: pnpm run type:check

- run: pnpm run test

test:
runs-on: ubuntu-latest
steps:
Expand All @@ -27,64 +25,8 @@ jobs:

- run: pnpm i

- run: pnpm run lint

- run: pnpm run type:check

- run: pnpm run test

publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [lint, test]
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm i

- name: Changeset version or publish on @latest
uses: changesets/action@v1
with:
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
version: pnpm run changeset:version
publish: pnpm run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true

publish-next:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm i

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

- run: pnpm run changeset:publish --tag next
env:
NPM_CONFIG_PROVENANCE: true

publish-commit:
runs-on: ubuntu-latest
steps:
Expand All @@ -94,6 +36,4 @@ jobs:

- run: pnpm i

- run: pnpm build:packages

- run: pnpm publish:packages:commit
- run: pnpm run packages:publish:commit
58 changes: 58 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Release

on:
workflow_dispatch:
inputs:
bump:
required: true
type: choice
options:
- next
- patch
- minor
- major
- prepatch
- preminor
- premajor

preid:
type: choice
required: true
default: beta
options:
- alpha
- beta
- canary

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4

- run: pnpm i

- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- run: pnpm run packages:bump ${{ github.event.inputs.bump }} --yes --preid ${{ github.event.inputs.preid }}

- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm run packages:publish --tag="${{ github.event.inputs.preid || 'latest' }}"
env:
NPM_CONFIG_PROVENANCE: true

- run: pnpm run packages:changelog:github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
!.npmrc
!.*.example
!.vscode/
!.changeset/
!.github/

# Common generated folders
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

For a complete list of changes, visit our [GitHub Releases page](https://github.com/unnoq/orpc/releases).

Stay updated with the latest features, fixes, and improvements!
2 changes: 1 addition & 1 deletion apps/content/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orpc/content",
"version": "0.0.0",
"version": "0.5.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "@orpc/monorepo",
"type": "module",
"private": true,
"packageManager": "pnpm@9.10.0",
"packageManager": "pnpm@9.12.1",
"author": {
"name": "unnoq",
"email": "contact@unnoq.com",
"url": "https://unnoq.com"
},
"scripts": {
"prepare": "simple-git-hooks",
"build": "pnpm run -r build",
"build:packages": "pnpm --filter=\"./packages/*\" run -r build",
"preview": "pnpm run --parallel preview",
Expand All @@ -22,15 +23,13 @@
"sherif:fix": "pnpm run sherif --fix",
"knip": "pnpm dlx knip --production",
"knip:fix": "pnpm run knip --fix --allow-remove-files",
"changeset:version": "changeset version",
"changeset:publish": "pnpm run build:packages && pnpm changeset publish",
"publish:packages:commit": "pnpm dlx pkg-pr-new publish './packages/*' --pnpm --compact --template './playgrounds/*'",
"prepare": "simple-git-hooks"
"packages:bump": "pnpm dlx bumpp -r",
"packages:publish": "pnpm run build:packages && pnpm --filter='./packages/*' publish -r --access=public",
"packages:publish:commit": "pnpm run build:packages && pnpm dlx pkg-pr-new publish './packages/*' --pnpm --compact --template './playgrounds/*'",
"packages:changelog:github": "pnpm dlx changelogithub"
},
"devDependencies": {
"@antfu/eslint-config": "^3.9.2",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@eslint-react/eslint-plugin": "^1.16.2",
Expand Down
92 changes: 3 additions & 89 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,5 @@
# @orpc/client
# Changelog

## 0.0.6
For a complete list of changes, visit our [GitHub Releases page](https://github.com/unnoq/orpc/releases).

### Patch Changes

- [`ea94dfe`](https://github.com/unnoq/orpc/commit/ea94dfedb57a04aa173f29b00e198af3015fa633) Thanks [@unnoq](https://github.com/unnoq)! - fix: bundle unexpected deps

- Updated dependencies [[`68f9a38`](https://github.com/unnoq/orpc/commit/68f9a38f77146ac0b9e61b4a18156753bf62a903), [`ea94dfe`](https://github.com/unnoq/orpc/commit/ea94dfedb57a04aa173f29b00e198af3015fa633)]:
- @orpc/shared@0.1.1
- @orpc/transformer@0.0.6

## 0.0.5

### Patch Changes

- Updated dependencies [[`3bc7898`](https://github.com/unnoq/orpc/commit/3bc789835a4c95551779c0c136fbf6ba40b79590)]:
- @orpc/shared@0.1.0
- @orpc/transformer@0.0.5

## 0.0.4

### Patch Changes

- [#25](https://github.com/unnoq/orpc/pull/25) [`2759965`](https://github.com/unnoq/orpc/commit/27599650d434049b4861bf4f9df8efb621fd60aa) Thanks [@unnoq](https://github.com/unnoq)! - chore: bump version

## 2.0.0

### Patch Changes

- Updated dependencies [[`d6f69ef`](https://github.com/unnoq/orpc/commit/d6f69ef1ee5f29a1419fe293cd1b9528be2e59fb)]:
- @orpc/contract@0.1.0
- @orpc/server@0.2.0

## 1.0.2

### Patch Changes

- Updated dependencies [[`b16f327`](https://github.com/unnoq/orpc/commit/b16f327fc4587cebc6eb1a600896f5a5a30d66a4)]:
- @orpc/server@0.1.2

## 1.0.1

### Patch Changes

- [`865646b`](https://github.com/unnoq/orpc/commit/865646b73f72bc293b7a9965a41e95c1886dbace) Thanks [@unnoq](https://github.com/unnoq)! - chore: dedupe code

- Updated dependencies [[`865646b`](https://github.com/unnoq/orpc/commit/865646b73f72bc293b7a9965a41e95c1886dbace), [`865646b`](https://github.com/unnoq/orpc/commit/865646b73f72bc293b7a9965a41e95c1886dbace)]:
- @orpc/server@0.1.1

## 1.0.0

### Patch Changes

- [`ab80aa6`](https://github.com/unnoq/orpc/commit/ab80aa614bcd4c5bff641ed693e2f86178235238) Thanks [@unnoq](https://github.com/unnoq)! - build: optimize

- Updated dependencies [[`8e9a954`](https://github.com/unnoq/orpc/commit/8e9a954ab8a13a4d968caaf4aa67b70c2d38c914), [`ab80aa6`](https://github.com/unnoq/orpc/commit/ab80aa614bcd4c5bff641ed693e2f86178235238), [`8e9a954`](https://github.com/unnoq/orpc/commit/8e9a954ab8a13a4d968caaf4aa67b70c2d38c914)]:
- @orpc/server@0.1.0
- @orpc/transformer@0.0.4
- @orpc/contract@0.0.4
- @orpc/shared@0.0.5

## 0.0.3

### Patch Changes

- Updated dependencies [[`7e5011f`](https://github.com/unnoq/orpc/commit/7e5011ff86cbc5426ec5624370a52d75d43dc190), [`7e5011f`](https://github.com/unnoq/orpc/commit/7e5011ff86cbc5426ec5624370a52d75d43dc190), [`90282e4`](https://github.com/unnoq/orpc/commit/90282e4482c1def9378307175046854039454708)]:
- @orpc/shared@0.0.4
- @orpc/server@0.0.3
- @orpc/contract@0.0.3
- @orpc/transformer@0.0.3

## 0.0.2

### Patch Changes

- Updated dependencies [[`c47e021`](https://github.com/unnoq/orpc/commit/c47e02148efae4bbed4e67fe6b8ff2d1540878be)]:
- @orpc/shared@0.0.3
- @orpc/contract@0.0.2
- @orpc/server@0.0.2
- @orpc/transformer@0.0.2

## 0.0.1

### Patch Changes

- Updated dependencies [[`a461d01`](https://github.com/unnoq/orpc/commit/a461d01c5a154ad10d96b1841d26b57a0c8609fa)]:
- @orpc/shared@0.0.2
- @orpc/contract@0.0.1
- @orpc/server@0.0.1
- @orpc/transformer@0.0.1
Stay updated with the latest features, fixes, and improvements!
9 changes: 5 additions & 4 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@orpc/client",
"type": "module",
"version": "0.0.6",
"version": "0.5.0",
"author": {
"name": "unnoq",
"email": "contact@unnoq.com",
Expand All @@ -18,7 +18,6 @@
"unnoq"
],
"publishConfig": {
"access": "public",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
Expand All @@ -45,13 +44,15 @@
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"peerDependencies": {
"@orpc/contract": "workspace:*",
"@orpc/server": "workspace:*"
},
"dependencies": {
"@orpc/shared": "workspace:*",
"@orpc/transformer": "workspace:*"
},
"devDependencies": {
"@orpc/contract": "workspace:*",
"@orpc/server": "workspace:*",
"zod": "^3.23.8"
}
}
Loading

0 comments on commit 033f793

Please sign in to comment.