diff --git a/.github/workflows/pr-release.yaml b/.github/workflows/pr-release.yaml index d51edbec..92e2af00 100644 --- a/.github/workflows/pr-release.yaml +++ b/.github/workflows/pr-release.yaml @@ -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' @@ -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 }}) diff --git a/package.json b/package.json index 772cd83e..b3af2992 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44f8fee1..f1aca0c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@biomejs/biome': specifier: ^1.9.4 version: 1.9.4 + '@changesets/changelog-github': + specifier: ^0.5.0 + version: 0.5.0 '@changesets/cli': specifier: ^2.27.9 version: 2.27.9 @@ -438,6 +441,9 @@ packages: '@changesets/changelog-git@0.2.0': resolution: {integrity: sha512-bHOx97iFI4OClIT35Lok3sJAwM31VbUM++gnMBV16fdbtBhgYu4dxsphBF/0AZZsyAHMrnM0yFcj5gZM1py6uQ==} + '@changesets/changelog-github@0.5.0': + resolution: {integrity: sha512-zoeq2LJJVcPJcIotHRJEEA2qCqX0AQIeFE+L21L8sRLPVqDhSXY8ZWAt2sohtBpFZkBwu+LUwMSKRr2lMy3LJA==} + '@changesets/cli@2.27.9': resolution: {integrity: sha512-q42a/ZbDnxPpCb5Wkm6tMVIxgeI9C/bexntzTeCFBrQEdpisQqk8kCHllYZMDjYtEc1ZzumbMJAG8H0Z4rdvjg==} hasBin: true @@ -451,6 +457,9 @@ packages: '@changesets/get-dependents-graph@2.1.2': resolution: {integrity: sha512-sgcHRkiBY9i4zWYBwlVyAjEM9sAzs4wYVwJUdnbDLnVG3QwAaia1Mk5P8M7kraTOZN+vBET7n8KyB0YXCbFRLQ==} + '@changesets/get-github-info@0.6.0': + resolution: {integrity: sha512-v/TSnFVXI8vzX9/w3DU2Ol+UlTZcu3m0kXTjTT4KlAdwSvwutcByYwyYn9hwerPWfPkT2JfpoX0KgvCEi8Q/SA==} + '@changesets/get-release-plan@4.0.4': resolution: {integrity: sha512-SicG/S67JmPTrdcc9Vpu0wSQt7IiuN0dc8iR5VScnnTVPfIaLvKmEGRvIaF0kcn8u5ZqLbormZNTO77bCEvyWw==} @@ -2129,6 +2138,9 @@ packages: resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==} engines: {node: '>=18'} + dataloader@1.4.0: + resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} + debug@4.3.7: resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} @@ -2186,6 +2198,10 @@ packages: dom-accessibility-api@0.6.3: resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} + dotenv@8.6.0: + resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} + engines: {node: '>=10'} + drange@1.1.1: resolution: {integrity: sha512-pYxfDYpued//QpnLIm4Avk7rsNtAtQkUES2cwAYSvD/wd2pKD71gN2Ebj3e7klzXwjocvE8c5vx/1fxwpqmSxA==} engines: {node: '>=4'} @@ -3017,6 +3033,15 @@ packages: sass: optional: true + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + node-releases@2.0.18: resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} @@ -3664,6 +3689,9 @@ packages: resolution: {integrity: sha512-FRKsF7cz96xIIeMZ82ehjC3xW2E+O2+v11udrDYewUbszngYhsGa8z6YUMMzO9QJZzzyd0nGGXnML/TReX6W8Q==} engines: {node: '>=16'} + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + tr46@1.0.1: resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} @@ -3881,6 +3909,9 @@ packages: resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} engines: {node: '>=18'} + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + webidl-conversions@4.0.2: resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} @@ -3903,6 +3934,9 @@ packages: resolution: {integrity: sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==} engines: {node: '>=18'} + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + whatwg-url@7.1.0: resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} @@ -4178,6 +4212,14 @@ snapshots: dependencies: '@changesets/types': 6.0.0 + '@changesets/changelog-github@0.5.0': + dependencies: + '@changesets/get-github-info': 0.6.0 + '@changesets/types': 6.0.0 + dotenv: 8.6.0 + transitivePeerDependencies: + - encoding + '@changesets/cli@2.27.9': dependencies: '@changesets/apply-release-plan': 7.0.5 @@ -4230,6 +4272,13 @@ snapshots: picocolors: 1.1.1 semver: 7.6.3 + '@changesets/get-github-info@0.6.0': + dependencies: + dataloader: 1.4.0 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + '@changesets/get-release-plan@4.0.4': dependencies: '@changesets/assemble-release-plan': 6.0.4 @@ -5787,6 +5836,8 @@ snapshots: whatwg-mimetype: 4.0.0 whatwg-url: 14.0.0 + dataloader@1.4.0: {} + debug@4.3.7: dependencies: ms: 2.1.3 @@ -5826,6 +5877,8 @@ snapshots: dom-accessibility-api@0.6.3: {} + dotenv@8.6.0: {} + drange@1.1.1: {} eastasianwidth@0.2.0: {} @@ -7102,6 +7155,10 @@ snapshots: - '@babel/core' - babel-plugin-macros + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + node-releases@2.0.18: {} normalize-path@3.0.0: {} @@ -7782,6 +7839,8 @@ snapshots: dependencies: tldts: 6.1.50 + tr46@0.0.3: {} + tr46@1.0.1: dependencies: punycode: 2.3.1 @@ -8010,6 +8069,8 @@ snapshots: dependencies: xml-name-validator: 5.0.0 + webidl-conversions@3.0.1: {} + webidl-conversions@4.0.2: {} webidl-conversions@7.0.0: {} @@ -8027,6 +8088,11 @@ snapshots: tr46: 5.0.0 webidl-conversions: 7.0.0 + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + whatwg-url@7.1.0: dependencies: lodash.sortby: 4.7.0