From 36dcae398bf2afb5c3c29e4777a6b3d0889caaf6 Mon Sep 17 00:00:00 2001 From: sebastijankuzner Date: Thu, 4 Jun 2026 18:00:32 +0000 Subject: [PATCH 1/4] Run on PR --- .github/workflows/publish-evm.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-evm.yml b/.github/workflows/publish-evm.yml index 6052fb89c..bce49ac33 100644 --- a/.github/workflows/publish-evm.yml +++ b/.github/workflows/publish-evm.yml @@ -8,14 +8,19 @@ env: permissions: contents: read +# on: +# push: +# branches: +# - "evm" + + on: - push: - branches: - - "evm" + pull_request: + types: [opened, synchronize, reopened, ready_for_review] jobs: build: - if: contains(github.event.head_commit.message, 'release:') && contains(github.event.head_commit.message, 'evm') + # if: contains(github.event.head_commit.message, 'release:') && contains(github.event.head_commit.message, 'evm') strategy: fail-fast: false @@ -78,7 +83,7 @@ jobs: publish: name: Publish - if: contains(github.event.head_commit.message, 'release:') && contains(github.event.head_commit.message, 'evm') + # if: contains(github.event.head_commit.message, 'release:') && contains(github.event.head_commit.message, 'evm') runs-on: ubuntu-latest needs: - build From 29b6aacc28951cf4896d0a5221eebf001f4898ab Mon Sep 17 00:00:00 2001 From: sebastijankuzner Date: Thu, 4 Jun 2026 18:04:10 +0000 Subject: [PATCH 2/4] Remove lockfile only --- .github/workflows/publish-evm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-evm.yml b/.github/workflows/publish-evm.yml index bce49ac33..2639c3506 100644 --- a/.github/workflows/publish-evm.yml +++ b/.github/workflows/publish-evm.yml @@ -138,7 +138,7 @@ jobs: shell: bash - name: Prepare release - run: pnpm run release:prepare && pnpm install --lockfile-only + run: pnpm run release:prepare && pnpm install - name: Publish native to NPM run: pnpm run release:native -- --publish-branch=evm --tag=evm --no-git-checks From 9df7cf2cdf0bb56ed62e737680c117fad4b9af37 Mon Sep 17 00:00:00 2001 From: sebastijankuzner Date: Thu, 4 Jun 2026 18:16:40 +0000 Subject: [PATCH 3/4] Exclude minimumReleaseAgeExclude --- pnpm-workspace.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 5f70dcb25..8cb33c8e1 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -13,3 +13,5 @@ allowBuilds: nsfw: true nx: true protobufjs: true +minimumReleaseAgeExclude: + - "@mainsail/*" From c982c3a0a77a5b5dae1677f393424643591aaa73 Mon Sep 17 00:00:00 2001 From: sebastijankuzner Date: Thu, 4 Jun 2026 18:25:25 +0000 Subject: [PATCH 4/4] Add verify deps before run --- .github/workflows/publish-evm.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-evm.yml b/.github/workflows/publish-evm.yml index 2639c3506..37e53b64b 100644 --- a/.github/workflows/publish-evm.yml +++ b/.github/workflows/publish-evm.yml @@ -137,19 +137,27 @@ jobs: run: ls -R ./npm shell: bash + # release:prepare bumps the evm version and adds the native packages as + # optionalDependencies, so the lockfile no longer matches package.json. Disable pnpm's + # implicit deps verification from here on (the initial install above keeps it) so the + # publish commands don't fail on the now-intentionally-out-of-sync lockfile. - name: Prepare release - run: pnpm run release:prepare && pnpm install + run: pnpm run release:prepare && pnpm install --lockfile-only + env: + PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: "false" - name: Publish native to NPM run: pnpm run release:native -- --publish-branch=evm --tag=evm --no-git-checks env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: "false" - name: Publish to NPM run: | pnpm run release -- --publish-branch=evm --tag=evm --no-git-checks env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: "false" # - name: Set dist-tag latest # run: |