Skip to content

ci: preview prerelease publish on main merges (#97) #566

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

matifali
Copy link
Member

@matifali matifali commented Aug 8, 2025

Summary

  • Consolidate release logic: keep stable release in release.yaml, add prerelease publish to ci.yaml.
  • On pushes to main, after lint/test, package and publish a VS Code pre-release to the Marketplace when VSCE_PAT is set.

Details

  • Uses vsce publish --pre-release --no-git-tag-version <computed-version>.
  • Version format: <pkg.version>-pre.<run_number>.<short_sha> to ensure monotonically increasing prereleases without tags.
  • Does not affect stable releases triggered by v* tags in release.yaml.

Notes

  • Set VSCE_PAT secret in repo or org to enable publishing.

Refs: #97

- Add preview job to `ci.yaml` to package and publish pre-release using vsce
- Trigger only on pushes to `main` when `VSCE_PAT` is set
- Keeps stable releases in `release.yaml`

Refs: #97
- Proper job-level if expression using env var
- Add concurrency to avoid overlapping publishes
- Remove invalid vsce flag; pass version explicitly

Refs: #97
- Guard on secret directly in job condition
- Bump package.json version in CI to align with computed prerelease
- Publish with vsce --pre-release without explicit version arg

Refs: #97
- Replace npx vsce with yarn vsce in workflows
- Update package script to use yarn

Refs: #97
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy