diff --git a/.github/workflow-scripts/__tests__/publishTemplate-test.js b/.github/workflow-scripts/__tests__/publishTemplate-test.js index 25734752cf4..464a76f5b40 100644 --- a/.github/workflow-scripts/__tests__/publishTemplate-test.js +++ b/.github/workflow-scripts/__tests__/publishTemplate-test.js @@ -95,7 +95,7 @@ describe('#verifyPublishedTemplate', () => { '@react-native-community/template', version, null, - 18, + 90, ); }); @@ -109,7 +109,7 @@ describe('#verifyPublishedTemplate', () => { '@react-native-community/template', version, 'latest', - 18, + 90, ); }); diff --git a/.github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js b/.github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js index e55f126183b..cd7ce85cf1e 100644 --- a/.github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js +++ b/.github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js @@ -33,7 +33,7 @@ describe('#verifyReleaseOnNPM', () => { 'react-native', version, null, - 18, + 90, ); }); @@ -47,7 +47,7 @@ describe('#verifyReleaseOnNPM', () => { 'react-native', version, 'latest', - 18, + 90, ); }); @@ -61,7 +61,7 @@ describe('#verifyReleaseOnNPM', () => { 'react-native', version, 'next', - 18, + 90, ); }); @@ -75,7 +75,7 @@ describe('#verifyReleaseOnNPM', () => { 'react-native', version, 'next', - 18, + 90, ); }); diff --git a/.github/workflow-scripts/publishTemplate.js b/.github/workflow-scripts/publishTemplate.js index 0d4f5b34393..6b7f6d40339 100644 --- a/.github/workflow-scripts/publishTemplate.js +++ b/.github/workflow-scripts/publishTemplate.js @@ -54,7 +54,7 @@ module.exports.publishTemplate = async (github, version, dryRun = true) => { }); }; -const MAX_RETRIES = 3 * 6; // 18 attempts. Waiting between attempt: 10 s. Total time: 3 mins. +const MAX_RETRIES = 15 * 6; // 90 attempts. Waiting between attempt: 10 s. Total time: 15 mins. const TEMPLATE_NPM_PKG = '@react-native-community/template'; /** diff --git a/.github/workflow-scripts/verifyPublishedPackage.js b/.github/workflow-scripts/verifyPublishedPackage.js index b7358b9b253..403b05ac728 100644 --- a/.github/workflow-scripts/verifyPublishedPackage.js +++ b/.github/workflow-scripts/verifyPublishedPackage.js @@ -10,7 +10,7 @@ const {log, getNpmPackageInfo, sleep} = require('./utils'); const SLEEP_S = 10; -const MAX_RETRIES = 3 * 6; // 18 attempts. Waiting between attempt: 10 s. Total time: 3 mins. +const MAX_RETRIES = 15 * 6; // 90 attempts. Waiting between attempt: 10 s. Total time: 15 mins. async function verifyPublishedPackage( packageName, @@ -24,8 +24,8 @@ async function verifyPublishedPackage( while (count-- > 0) { try { const json = await getNpmPackageInfo(packageName, tag ? tag : version); - log(`🎉 Found ${packageName}@${version} on npm`); if (!tag) { + log(`🎉 Found ${packageName}@${version} on npm`); return; } diff --git a/.github/workflow-scripts/verifyReleaseOnNpm.js b/.github/workflow-scripts/verifyReleaseOnNpm.js index e65cda40123..e206b4bcf1a 100644 --- a/.github/workflow-scripts/verifyReleaseOnNpm.js +++ b/.github/workflow-scripts/verifyReleaseOnNpm.js @@ -10,7 +10,7 @@ const {run, sleep, log} = require('./utils.js'); const {verifyPublishedPackage} = require('./verifyPublishedPackage.js'); const REACT_NATIVE_NPM_PKG = 'react-native'; -const MAX_RETRIES = 3 * 6; // 18 attempts. Waiting between attempt: 10 s. Total time: 3 mins. +const MAX_RETRIES = 15 * 6; // 90 attempts. Waiting between attempt: 10 s. Total time: 15 mins. /** * Will verify that @latest, @next and the @ have been published. * diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 4326c0f047f..9533c075685 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -258,7 +258,7 @@ jobs: const isDryRun = false await publishTemplate(github, version, isDryRun); - name: Wait for template to be published - timeout-minutes: 3 + timeout-minutes: 16 uses: actions/github-script@v8 with: github-token: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }} @@ -273,7 +273,7 @@ jobs: -H "Authorization: Bearer $REACT_NATIVE_BOT_GITHUB_TOKEN" \ -d "{\"event_type\": \"publish\", \"client_payload\": { \"version\": \"${{ github.ref_name }}\" }}" - name: Verify Release is on NPM - timeout-minutes: 3 + timeout-minutes: 16 uses: actions/github-script@v8 with: github-token: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }}