1
0
Fork 0
mirror of synced 2026-06-05 11:15:14 +00:00

chore: automatic major version tagging (#1565)

* Update release-please.yml to auto-update version tag

* chore: configure release-please auto floating tag

---------

Co-authored-by: Tom Keller <kellertk@amazon.com>
This commit is contained in:
Michael Lehmann 2026-05-06 14:04:09 -07:00 committed by GitHub
commit c36525a567
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,10 +36,27 @@
${{ secrets.OSDS_PACKAGING_ROLE }} ${{ secrets.OSDS_PACKAGING_ROLE }}
- name: Run release-please - name: Run release-please
id: release
uses: googleapis/release-please-action@v4 uses: googleapis/release-please-action@v4
with: with:
release-type: node release-type: node
token: ${{ env.OSDS_ACCESS_TOKEN }} token: ${{ env.OSDS_ACCESS_TOKEN }}
config-file: release-please-config.json config-file: release-please-config.json
manifest-file: .release-please-manifest.json manifest-file: .release-please-manifest.json
- name: Checkout Again
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Tag Major Version
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name "GitHub Actions"
git config user.email "github-aws-sdk-osds-automation@amazon.com
if git rev-parse "v${{ steps.release.outputs.major }}" >/dev/null 2>&1; then
git tag -d "v${{ steps.release.outputs.major }}"
git push origin ":v${{ steps.release.outputs.major }}"
fi
git tag -a "v${{ steps.release.outputs.major }}" -m "Release v${{ steps.release.outputs.major }}"
git push origin "v${{ steps.release.outputs.major }}"