Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update firefox and chrome upload/publish process #1157

Merged
merged 2 commits into from
May 12, 2021
Merged

Conversation

CharlieC3
Copy link
Contributor

@CharlieC3 CharlieC3 commented May 12, 2021

Try out this version of the Stacks Wallet - download extension builds.

Description

This PR makes a few changes for the Chrome and Firefox to help improve the release workflow.

  1. Now uses the chrome-webstore-upload-cli to upload and publish the Chrome extension. This CLI has much wider adoption than the previous GH Action we were using, can be ran locally in a pinch, and helps expose uploading/publishing errors:
    yarn webstore upload --source stacks-wallet-chromium.zip --auto-publish
    yarn run v1.22.4
    Error Code: ITEM_NOT_UPDATABLE
    Details: The item cannot be updated now because it is in pending review, ready to publish, or deleted status.
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    
  2. Now uses web-ext-submit instead of web-ext To sign and publish the Firefox extension. web-ext-submit is a simple wrapper around web-ext, except it prevents the inevitable and unrelated "it could not be signed error", which is a deep issue in the web-ext package. Despite the error, the package still gets uploaded for review just fine. This minor change should help reduce minor errors which otherwise fail the build regardless of the result.
  3. Removed the Chrome and Firefox package uploads to the GH Actions page and GCP bucket. The FF package literally can never produce another signed and listed XPI package again until the web-ext issue is resolved. Thus, the steps to find and upload an XPI package will never work, so I removed it. I removed the Chrome upload to the GH summary and GCP because it would be missing its FF counterpart and it feels unnecessary since it's easy enough to create locally via sh build-ext.sh.
  4. Renamed the workflow to Publish Extensions for disambiguation because there's a different workflow in the app.blockstack.org branch with the same name.

Some Remaining Issues

This PR does not definitively resolve upload issues for Chrome nor Firefox, but it should help expose the root underlying problem(s) involved with publishing, reduce failures due to unrelated errors, and allow us to more easily publish and test publishes locally if needed for any reason.

Type of Change

  • New feature
  • Bug fix
  • API reference/documentation update
  • Other

Does this introduce a breaking change?

The web-ext package was moved from regular dependencies to a dev dependency. I don't think it should have any effect though.

Are documentation updates required?

No.

Checklist

@CharlieC3 CharlieC3 requested a review from aulneau May 12, 2021 00:28
@CharlieC3 CharlieC3 self-assigned this May 12, 2021
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2021

⚠️ No Changeset found

Latest commit: 199a7b0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented May 12, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/blockstack/stacks-wallet-web/FDxQm3Go9EMCVciDpLRf8JVaTmBA
✅ Preview: https://stacks-wallet-web-git-fix-extensions-blockstack.vercel.app

@CharlieC3
Copy link
Contributor Author

cc @andresgalante

@vercel vercel bot temporarily deployed to Preview May 12, 2021 00:35 Inactive
@aulneau aulneau merged commit 8e55548 into main May 12, 2021
@CharlieC3 CharlieC3 deleted the fix/extensions branch May 12, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants