From 239579188b27b4e299e061a679d14406dd46055f Mon Sep 17 00:00:00 2001 From: matteo-cristino Date: Mon, 5 Aug 2024 17:36:45 +0200 Subject: [PATCH 1/2] fix: build after version released In this way we have the correct version in the slangroom-editor --- .github/workflows/publish.yml | 5 ++--- .releaserc | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fa8ce8d..079bb01 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: name: ๐Ÿงช runs-on: ubuntu-latest steps: - - uses: dyne/pnpm@v1 + - uses: dyne/pnpm@main - run: npx playwright install --with-deps - run: pnpm t - uses: actions/upload-artifact@v4 @@ -52,8 +52,7 @@ jobs: pull-requests: write id-token: write steps: - - uses: dyne/pnpm@v1 - - run: pnpm build + - uses: dyne/pnpm@main - run: pnpm semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc b/.releaserc index 0a2bc9f..2f7397c 100644 --- a/.releaserc +++ b/.releaserc @@ -31,6 +31,12 @@ "message": "chore(release): ๐Ÿš€ ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ], + [ + "@semantic-release/exec", + { + "prepareCmd": "pnpm build" + } + ], [ "@semantic-release/github", { From b192072eb391c0b270d19f3da7045e404ec24d42 Mon Sep 17 00:00:00 2001 From: matteo-cristino Date: Mon, 5 Aug 2024 17:43:47 +0200 Subject: [PATCH 2/2] chore: add @semantic-release/exec to devDependencies --- package.json | 1 + pnpm-lock.yaml | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f08a190..477873f 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@playwright/test": "^1.45.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^13.0.0", + "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^10.0.6", "@semantic-release/npm": "^12.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2c5e69..08742f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,6 +81,9 @@ importers: '@semantic-release/commit-analyzer': specifier: ^13.0.0 version: 13.0.0(semantic-release@24.0.0(typescript@5.5.3)) + '@semantic-release/exec': + specifier: ^6.0.3 + version: 6.0.3(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/git': specifier: ^10.0.1 version: 10.0.1(semantic-release@24.0.0(typescript@5.5.3)) @@ -1355,6 +1358,12 @@ packages: resolution: {integrity: sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==} engines: {node: '>=18'} + '@semantic-release/exec@6.0.3': + resolution: {integrity: sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ==} + engines: {node: '>=14.17'} + peerDependencies: + semantic-release: '>=18.0.0' + '@semantic-release/git@10.0.1': resolution: {integrity: sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==} engines: {node: '>=14.17'} @@ -6950,6 +6959,18 @@ snapshots: '@semantic-release/error@4.0.0': {} + '@semantic-release/exec@6.0.3(semantic-release@24.0.0(typescript@5.5.3))': + dependencies: + '@semantic-release/error': 3.0.0 + aggregate-error: 3.1.0 + debug: 4.3.5 + execa: 5.1.1 + lodash: 4.17.21 + parse-json: 5.2.0 + semantic-release: 24.0.0(typescript@5.5.3) + transitivePeerDependencies: + - supports-color + '@semantic-release/git@10.0.1(semantic-release@24.0.0(typescript@5.5.3))': dependencies: '@semantic-release/error': 3.0.0 @@ -8923,7 +8944,7 @@ snapshots: dependencies: basic-ftp: 5.0.5 data-uri-to-buffer: 6.0.2 - debug: 4.3.4 + debug: 4.3.5 fs-extra: 11.2.0 transitivePeerDependencies: - supports-color