Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
ci(release): keep the v3 action tag on the newest release
Tw939d604eca5aa2
diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.mdindex cea3b631..ad9d3a4b 100644--- a/.agents/skills/release/SKILL.md+++ b/.agents/skills/release/SKILL.md@@ -37,7 +37,8 @@ If the bump push is rejected, rebase onto the contributors bot commit as AGENTS.2. [ ] `gh release view VX.Y.Z --json tagName,url,assets`, then fill the title and body per **GitHub Release Notes** below; CI leaves a bare placeholder.3. [ ] `gh run list --workflow=npm-publish.yml`, then `npm view [email protected] version gitHead dist.tarball --json` and `npm view pake-cli version` for `latest`.4. [ ] Record `gh run list --workflow=quality-and-test.yml --limit 3` separately.-5. [ ] Add the six positive reactions (`+1`, `laugh`, `heart`, `hooray`, `rocket`, `eyes`) to `repos/tw93/Pake/releases/<id>/reactions` via `gh api` and read them back. Never `-1` or `confused`.+5. [ ] Confirm the release workflow's `Move Major Action Tag` job moved the major tag: `git ls-remote origin refs/tags/v3` must equal the `VX.Y.Z` commit (`git rev-parse VX.Y.Z^{commit}`), since the Action docs pin `tw93/Pake@v3`. The job runs only after `Build CLI` succeeds and skips when the tag is not the newest `VX.*` release, so a re-pushed older tag never moves it back. Never force-push it by hand unless that job failed.+6. [ ] Add the six positive reactions (`+1`, `laugh`, `heart`, `hooray`, `rocket`, `eyes`) to `repos/tw93/Pake/releases/<id>/reactions` via `gh api` and read them back. Never `-1` or `confused`.## npm-Only Hotfix (no tag)diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex bb4cb8b9..c846a499 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -62,6 +62,45 @@ jobs:token: ${{ secrets.GITHUB_TOKEN }}skipIfReleaseExists: true+ # Keep the moving major tag (e.g. v3) on the latest release so+ # `uses: tw93/Pake@v3` picks up action fixes without a docs bump.+ move-major-tag:+ name: Move Major Action Tag+ runs-on: ubuntu-latest+ needs: build-cli+ if: |+ needs.build-cli.result == 'success' &&+ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/V')+ permissions:+ contents: write+ steps:+ - name: Checkout repository+ uses: actions/checkout@v6++ - name: Force-move major tag+ env:+ RELEASE_TAG: ${{ github.ref_name }}+ run: |+ if [[ ! "$RELEASE_TAG" =~ ^V([0-9]+)\.[0-9]+\.[0-9]+$ ]]; then+ echo "Skipping major tag for non-release tag $RELEASE_TAG"+ exit 0+ fi+ MAJOR="${BASH_REMATCH[1]}"+ MAJOR_TAG="v$MAJOR"+ # Only the newest release of this major may own the tag, so re-pushing+ # an older V tag never moves it back.+ LATEST_TAG="$(git ls-remote --tags --refs origin "refs/tags/V$MAJOR.*" \+ | sed 's#.*refs/tags/##' \+ | grep -E "^V$MAJOR\.[0-9]+\.[0-9]+$" \+ | sort -V | tail -n 1)"+ if [ "$RELEASE_TAG" != "$LATEST_TAG" ]; then+ echo "Skipping $MAJOR_TAG: $RELEASE_TAG is not the latest V$MAJOR release ($LATEST_TAG)"+ exit 0+ fi+ git tag -f "$MAJOR_TAG" "$GITHUB_SHA"+ git push -f origin "refs/tags/$MAJOR_TAG"+ echo "Moved $MAJOR_TAG to $GITHUB_SHA ($RELEASE_TAG)"+build-cli:permissions:contents: readdiff --git a/docs/pake-action.md b/docs/pake-action.mdindex a0eb690d..ce71be81 100644--- a/docs/pake-action.md+++ b/docs/pake-action.md@@ -12,7 +12,7 @@ Call Pake from your own GitHub Actions workflow to turn any webpage into a light```yaml- name: Build Pake App- uses: tw93/[email protected]+ uses: tw93/Pake@v3with:url: "https://example.com"name: "MyApp"@@ -49,7 +49,7 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- - uses: tw93/[email protected]+ - uses: tw93/Pake@v3with:url: "https://weekly.tw93.fun"name: "WeeklyApp"@@ -58,7 +58,7 @@ jobs:### With Custom Icon```yaml-- uses: tw93/[email protected]+- uses: tw93/Pake@v3with:url: "https://example.com"name: "MyApp"@@ -78,7 +78,7 @@ jobs:runs-on: ${{ matrix.os }}steps:- uses: actions/checkout@v4- - uses: tw93/[email protected]+ - uses: tw93/Pake@v3with:url: "https://example.com"name: "CrossPlatformApp"diff --git a/docs/pake-action_CN.md b/docs/pake-action_CN.mdindex 18567b95..91063018 100644--- a/docs/pake-action_CN.md+++ b/docs/pake-action_CN.md@@ -12,7 +12,7 @@```yaml- name: Build Pake App- uses: tw93/[email protected]+ uses: tw93/Pake@v3with:url: "https://example.com"name: "MyApp"@@ -49,7 +49,7 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- - uses: tw93/[email protected]+ - uses: tw93/Pake@v3with:url: "https://weekly.tw93.fun"name: "WeeklyApp"@@ -58,7 +58,7 @@ jobs:### 指定自定义图标和窗口尺寸```yaml-- uses: tw93/[email protected]+- uses: tw93/Pake@v3with:url: "https://example.com"name: "MyApp"@@ -78,7 +78,7 @@ jobs:runs-on: ${{ matrix.os }}steps:- uses: actions/checkout@v4- - uses: tw93/[email protected]+ - uses: tw93/Pake@v3with:url: "https://example.com"name: "CrossPlatformApp"