Skip to content

Commit

Permalink
ci: fix pr-release
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Nov 18, 2024
1 parent b38be7f commit 9bff076
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,40 @@ jobs:
[View logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
edit-mode: replace

- name: Get @dinui/react version
- name: Get @orpc/server version
if: steps.publish.outcome == 'success'
uses: martinbeentjes/npm-get-version-action@v1.3.1
id: dinui-react-version
id: orpc-server-version
with:
path: packages/react-ui
path: packages/server

- name: Get @dinui/cli version
- name: Get @orpc/contract version
if: steps.publish.outcome == 'success'
uses: martinbeentjes/npm-get-version-action@v1.3.1
id: dinui-cli-version
id: orpc-contract-version
with:
path: packages/cli
path: packages/contract

- name: Get @orpc/client version
if: steps.publish.outcome == 'success'
uses: martinbeentjes/npm-get-version-action@v1.3.1
id: orpc-client-version
with:
path: packages/client

- name: Get @orpc/react version
if: steps.publish.outcome == 'success'
uses: martinbeentjes/npm-get-version-action@v1.3.1
id: orpc-react-version
with:
path: packages/react

- name: Get @orpc/openapi version
if: steps.publish.outcome == 'success'
uses: martinbeentjes/npm-get-version-action@v1.3.1
id: orpc-openapi-version
with:
path: packages/openapi

- name: Update pr-release comment with published status
if: steps.publish.outcome == 'success'
Expand All @@ -106,11 +127,11 @@ jobs:
Status: ✅ Published
```bash
npm install @orpc/server@${{ steps.dinui-react-version.outputs.current-version}}
npm install @orpc/contract@${{ steps.dinui-react-version.outputs.current-version}}
npm install @orpc/client@${{ steps.dinui-react-version.outputs.current-version}}
npm install @orpc/react@${{ steps.dinui-react-version.outputs.current-version}}
npm install @orpc/openapi@${{ steps.dinui-react-version.outputs.current-version}}
npm install @orpc/server@${{ steps.orpc-server-version.outputs.current-version}}
npm install @orpc/contract@${{ steps.orpc-contract-version.outputs.current-version}}
npm install @orpc/client@${{ steps.orpc-client-version.outputs.current-version}}
npm install @orpc/react@${{ steps.orpc-react-version.outputs.current-version}}
npm install @orpc/openapi@${{ steps.orpc-openapi-version.outputs.current-version}}
```
[View logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }})
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^16.0.1",
Expand Down
66 changes: 66 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9bff076

Please sign in to comment.