Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
access_token_scopes: https://www.googleapis.com/auth/chromewebstore
create_credentials_file: false
export_environment_variables: false
- name: Check status or submit Chromium for staged publishing
- name: Check status or submit Chromium for automatic publishing after review
env:
CWS_TOKEN: ${{ steps.chrome-auth.outputs.access_token }}
CWS_PUBLISHER_ID: ${{ vars.CWS_PUBLISHER_ID }}
Expand Down
6 changes: 3 additions & 3 deletions scripts/submit-chrome-web-store.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ if (CWS_ACTION === 'status') {
const submission = await request(`/v2/${item}:publish`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ publishType: 'STAGED_PUBLISH', blockOnWarnings: true }),
body: JSON.stringify({ publishType: 'DEFAULT_PUBLISH', blockOnWarnings: true }),
})
if (!['PENDING_REVIEW', 'STAGED'].includes(submission.state)) {
if (!['PENDING_REVIEW', 'PUBLISHED'].includes(submission.state)) {
throw new Error(`Unexpected Chrome Web Store submission state: ${submission.state}`)
}
console.log(
`Chrome Web Store ${version}: ${submission.state}. Publish from the dashboard after approval.`
`Chrome Web Store ${version}: ${submission.state}. The store publishes automatically after approval.`
)
}
Loading