Replies: 2 comments
-
|
Good question — and the answer is "yes, it's worth doing, and we now have the primitives to make it cheap." Shipping in apm 0.14.0 (#1372) and apm-action v1.9.0 (microsoft/apm-action#44). Versioning strategy decision matrix — see Versioning strategies for the full table. The short version:
For your case (per-package versions, sounds like one GH Release per "bump batch"), marketplace:
versioning:
strategy: tag_pattern
packages:
- name: pkg-one
version: 2.3.1
tag_pattern: "{name}-v{version}" # pkg-one-v2.3.1
- name: pkg-two
version: 1.0.0
tag_pattern: "{name}-v{version}" # pkg-two-v1.0.0Is the GH Release necessary? Functionally no — your bump script + master CHANGELOG.md does the job of "what changed when." But a GH Release earns its keep on three axes:
Your bump script + # .github/workflows/release.yml
on:
push:
tags: ['release-*'] # or your own pattern
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/apm-action@v1
with:
mode: release
release-tag: ${{ github.ref_name }}The action runs Closing this discussion as resolved. |
Beta Was this translation helpful? Give feedback.
-
|
Follow-up: lockstep golden-path now docs-attested. The lockstep section in If you want to see the gate fire ( The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Given an mono-repo marketplace, comprised of many packages that have their own release numbers, what would be considered a best practice for expressing a github release within that github repo? Is it even necessary?
I'm looking at it as a sort of quick check that people can do when visiting the repo, but I suppose they can hot link our root CHANGELOG.md and do the same thing. We have package specific README.md files and a bump script that copies changelogs from each package in the MR to the masterchange log and runs
apm pack --target all.Beta Was this translation helpful? Give feedback.
All reactions