Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/major-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update major tag

# Points the major version tag (v1, v2, ...) at each published stable release so
# that `uses: XTSoftwareLabs/nativeboat-action@v1` picks up the latest v1.x.y.
on:
release:
types: [published]

permissions:
contents: write

jobs:
tag:
if: ${{ !github.event.release.prerelease }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
- name: Move major tag
shell: pwsh
env:
TAG: ${{ github.event.release.tag_name }}
run: |
if ($env:TAG -notmatch '^(v\d+)\.\d+\.\d+$') { throw "Release tag '$env:TAG' is not vX.Y.Z." }
$major = $Matches[1]
git tag -f $major "$env:TAG^{commit}"
git push -f origin "refs/tags/${major}"
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v7
with:
node-version: '22'
- uses: XTSoftwareLabs/nativeboat-action@main
- uses: XTSoftwareLabs/nativeboat-action@v1
id: nativeboat
with:
project-path: apps/desktop-electron
Expand All @@ -43,9 +43,9 @@ available, for example with `actions/setup-node` and `pnpm/action-setup` for a
pnpm project. Projects whose packaging scripts build helper programs also need
the corresponding build tools. Installing dependencies before the action works too.

The example tracks this action's `main` branch. Pin the action to a commit SHA for
reproducible CI, and pin the compiler with `version` using an exact published
release tag, including its `v` prefix.
`@v1` follows the latest `v1.x.y` release of this action. Pin a full release tag
such as `@v1.0.0`, or a commit SHA, for reproducible CI, and pin the compiler with
`version` using an exact published release tag, including its `v` prefix.

## Inputs

Expand Down Expand Up @@ -94,3 +94,6 @@ The action runs directly from `src/` with the GitHub runner's Node.js 24 runtime
It uses only Node.js built-ins. Tests run on Windows and Linux. The **Smoke
build** workflow compiles the included Electron fixture using a published compiler
release; run it manually with the desired release tag.

Releases use `vX.Y.Z` tags. Publishing a stable release runs the **Update major
tag** workflow, which moves the `vX` tag to that release.
Loading