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: clean up publish actions #60

Merged
merged 5 commits into from
May 29, 2024
Merged

ci: clean up publish actions #60

merged 5 commits into from
May 29, 2024

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented May 29, 2024

High priority follow up from #53, this finishes up the work in c348df2

  • We now only run the publish jobs when we're actually wanting to publish the extension, i.e. on tags pushed to the posit-dev owned repo. Note: this fixes a bug I introduced when working quickly to get the marketplace extension published.

  • Otherwise we lint and build the extension, where building the extension also calls yarn compile. This is a superset of what happens when dryRun: true, so the extra dry run publishing isn't required.

  • The publish jobs fail silently if the extension is already published by setting skipDuplicate: true in the publish-vscode-extension settings.

All jobs are fast enough that it's not worth the extra effort to download the vsix artifact in the publish jobs.

@jcheng5
Copy link
Collaborator

jcheng5 commented May 29, 2024

I’m confused why this was a bug before. We were running the publish jobs even when not tags, but any non-tags got the dry run flag set, right?

@gadenbuie
Copy link
Collaborator Author

I’m confused why this was a bug before. We were running the publish jobs even when not tags, but any non-tags got the dry run flag set, right?

@jcheng5 Yeah actually I think the bug was temporarily inside this PR. I don't think there's currently a bug on main, and there definitely wasn't before I made any changes to the publish job.

Anyway, the behavior in this PR is what I want: only run the publish step on tag pushes to the posit-dev/shiny-vscode repo.

@gadenbuie gadenbuie merged commit 10fa5f0 into main May 29, 2024
3 checks passed
@gadenbuie gadenbuie deleted the ci/clean-publish branch May 29, 2024 17:40
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.

None yet

2 participants