From eb02343f950bfa8d2e2ee60ce609bff2744fe3b7 Mon Sep 17 00:00:00 2001 From: Fabrizio Cucci Date: Tue, 4 Mar 2025 03:17:46 -0800 Subject: [PATCH] Fix destructuring error in `Verify Release is on NPM` step Summary: Found this issue while releasing 0.79.0-rc.0 (see [job](https://github.com/facebook/react-native/actions/runs/13649159968/job/38156418752)). bypass-github-export-checks ``` SyntaxError: Invalid destructuring assignment target at new AsyncFunction () at callAsyncFunction (/__w/_actions/actions/github-script/v6/dist/index.js:15143:16) at main (/__w/_actions/actions/github-script/v6/dist/index.js:15236:26) at /__w/_actions/actions/github-script/v6/dist/index.js:15217:1 at /__w/_actions/actions/github-script/v6/dist/index.js:15268:3 at Object. (/__w/_actions/actions/github-script/v6/dist/index.js:15271:12) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) ``` ## Changelog: [Internal] - Reviewed By: cipolleschi Differential Revision: D70552301 fbshipit-source-id: b50e3d76c7497cc218e379400d5870531669abe1 --- .github/workflows/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c99dc012c71..e3b151e875f 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -226,6 +226,6 @@ jobs: github-token: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }} script: | const {verifyReleaseOnNpm} = require('./.github/workflow-scripts/verifyReleaseOnNpm.js'); - const {isLatest()} = require('./.github/workflow-scripts/publishTemplate.js'); + const {isLatest} = require('./.github/workflow-scripts/publishTemplate.js'); const version = "${{ github.ref_name }}"; await verifyReleaseOnNpm(version, isLatest());