Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflow-scripts/__tests__/publishTemplate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('#verifyPublishedTemplate', () => {
'@react-native-community/template',
version,
null,
18,
90,
);
});

Expand All @@ -109,7 +109,7 @@ describe('#verifyPublishedTemplate', () => {
'@react-native-community/template',
version,
'latest',
18,
90,
);
});

Expand Down
8 changes: 4 additions & 4 deletions .github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('#verifyReleaseOnNPM', () => {
'react-native',
version,
null,
18,
90,
);
});

Expand All @@ -47,7 +47,7 @@ describe('#verifyReleaseOnNPM', () => {
'react-native',
version,
'latest',
18,
90,
);
});

Expand All @@ -61,7 +61,7 @@ describe('#verifyReleaseOnNPM', () => {
'react-native',
version,
'next',
18,
90,
);
});

Expand All @@ -75,7 +75,7 @@ describe('#verifyReleaseOnNPM', () => {
'react-native',
version,
'next',
18,
90,
);
});

Expand Down
2 changes: 1 addition & 1 deletion .github/workflow-scripts/publishTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down
4 changes: 2 additions & 2 deletions .github/workflow-scripts/verifyPublishedPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflow-scripts/verifyReleaseOnNpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 @<version> have been published.
*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
Loading