diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0bbb9104b5..22ff3f4bb5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -130,18 +130,18 @@ jobs: tag: ${{ contains(env.RELEASE_TYPE, 'alpha') && 'alpha' }} dry-run: ${{ env.DRY_RUN }} - # ! Do NOT remove - this will cause a Sev 0 incident ! - - name: Generate SDK attestation - uses: actions/attest-build-provenance@v1 - with: - subject-path: './sdk' - - name: Generate last_updated.json if: (env.DRY_RUN) == 'false' run: | echo "{\"timestamp\": \"$(date -u +"%Y-%m-%dT%H:%M:%SZ")\"}" > ./sdk/last_updated.json cp ./sdk/last_updated.json ./sdk/dist/ + # ! Do NOT remove - this will cause a Sev 0 incident ! + - name: Generate SDK attestation + uses: actions/attest-build-provenance@v1 + with: + subject-path: './sdk' + - name: Authenticate NPM if: contains(env.RELEASE_TYPE, 'release') run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.TS_IMMUTABLE_SDK_NPM_TOKEN }} diff --git a/packages/checkout/sdk/src/widgets/version.ts b/packages/checkout/sdk/src/widgets/version.ts index e6f529160f..6f22ce012d 100644 --- a/packages/checkout/sdk/src/widgets/version.ts +++ b/packages/checkout/sdk/src/widgets/version.ts @@ -106,7 +106,7 @@ function latestCompatibleVersion( * @returns {Promise} A promise resolving to `true` if last_updated.json exists and is older than 15 minutes, `false` otherwise. */ async function checkLastUpdatedTimestamp(version: string): Promise { - const WAIT_TIME_IN_MINUTES = 20; + const WAIT_TIME_IN_MINUTES = 45; const lastUpdatedJsonUrl = `https://cdn.jsdelivr.net/npm/@imtbl/sdk@${version}/dist/last_updated.json`;