Compare commits

...

4 Commits
v6.0.2 ... main

Author SHA1 Message Date
github-actions
2cc5b27bf3 chore(release): 6.0.3 [skip ci]
## [6.0.3](https://github.com/easingthemes/ssh-deploy/compare/v6.0.2...v6.0.3) (2026-04-02)

### Bug Fixes

* keep @semantic-release/github plugin for GitHub Releases ([0cffff4](0cffff4878))
* update major version tag as post-release step ([6306dda](6306ddad7c))
2026-04-02 21:50:15 +00:00
Dragan Filipović
066a59ba0d Merge pull request #213 from easingthemes/fix/update-major-tag-on-release
fix: update major version tag as post-release step
2026-04-02 23:49:42 +02:00
Dragan Filipovic
0cffff4878 fix: keep @semantic-release/github plugin for GitHub Releases
This plugin creates proper GitHub Release pages with changelogs,
which is valuable independently of workflow triggering.
2026-04-02 23:48:36 +02:00
Dragan Filipovic
6306ddad7c fix: update major version tag as post-release step
Move major tag update (e.g. v6) into the release workflow as a
conditional step, gated on semantic-release actually publishing.
This avoids the GITHUB_TOKEN limitation where events from the
default token don't trigger separate workflows.

Also reverts @semantic-release/github from .releaserc since we no
longer rely on the release event to trigger a separate workflow.
2026-04-02 23:47:01 +02:00
4 changed files with 18 additions and 24 deletions

View File

@@ -28,6 +28,7 @@ jobs:
- name: Run Tests
run: npm test --if-present
- name: Release
id: semantic
uses: cycjimmy/semantic-release-action@v6
with:
semantic_version: 24
@@ -43,3 +44,11 @@ jobs:
GIT_COMMITTER_NAME: github-actions
GIT_COMMITTER_EMAIL: github-actions@github.com
CI: true
- name: Update major version tag
if: steps.semantic.outputs.new_release_published == 'true'
run: |
MAJOR="v${{ steps.semantic.outputs.new_release_major_version }}"
TAG="v${{ steps.semantic.outputs.new_release_version }}"
echo "Updating $MAJOR tag to point to $TAG"
git tag -f "$MAJOR" "$TAG"
git push -f origin "$MAJOR"

View File

@@ -1,23 +0,0 @@
name: Update major version tag
on:
release:
types: [published]
jobs:
update-tag:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Update major version tag
run: |
VERSION="${{ github.event.release.tag_name }}"
MAJOR="v$(echo "$VERSION" | sed 's/^v//' | cut -d. -f1)"
echo "Updating $MAJOR tag to point to $VERSION"
git tag -f "$MAJOR" "$VERSION"
git push -f origin "$MAJOR"

View File

@@ -1,3 +1,11 @@
## [6.0.3](https://github.com/easingthemes/ssh-deploy/compare/v6.0.2...v6.0.3) (2026-04-02)
### Bug Fixes
* keep @semantic-release/github plugin for GitHub Releases ([0cffff4](https://github.com/easingthemes/ssh-deploy/commit/0cffff4878a082b939d7fa0db84034a64b498430))
* update major version tag as post-release step ([6306dda](https://github.com/easingthemes/ssh-deploy/commit/6306ddad7ccb78a18c3a18668fbb0b9b0adb911f))
## [6.0.2](https://github.com/easingthemes/ssh-deploy/compare/v6.0.1...v6.0.2) (2026-04-02)

View File

@@ -1,6 +1,6 @@
{
"name": "@draganfilipovic/ssh-deploy",
"version": "6.0.2",
"version": "6.0.3",
"description": "Fast NodeJS action to deploy specific directory from `GITHUB_WORKSPACE` to a server via rsync over ssh.",
"main": "dist/index.js",
"files": [