Files
editor/.github/workflows/release.yml
T
dependabot[bot] da74d8101b chore(deps): Bump mathieudutour/github-tag-action from 6.2 to 7 (#2196)
Bumps
[mathieudutour/github-tag-action](https://github.com/mathieudutour/github-tag-action)
from 6.2 to 7.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/mathieudutour/github-tag-action/blob/master/CHANGELOG.md">mathieudutour/github-tag-action's
changelog</a>.</em></p>
<blockquote>
<h1>v7.0.0</h1>
<p>v7 upgrades the action to Node 24 and introduces breaking changes to
version calculation and branch handling. Review the migration guide
before upgrading from v6.</p>
<ul>
<li>Run on Node 24 and ship a self-contained <code>dist/</code> bundle
with both supported commit presets, templates, dependencies, and license
notices. Refresh the lockfile, remove the old Octokit dependency chain,
and retain proxy support.</li>
<li>Align analysis and changelogs on Conventional Commits, including
<code>feat!</code>. Angular remains selectable.</li>
<li>Match whole branch names; an empty prerelease list now means no
prerelease branches. Never publish from PR events or recursively process
tag events. Preview versions include a commit SHA suffix.</li>
<li>Fetch all tags and all compare-commit pages. Explicitly restricted
tag fetching fails when results might be incomplete. Read initial commit
history instead of comparing against a fabricated HEAD baseline.</li>
<li>Skip version creation when no eligible commits remain, unless custom
or forced versioning was explicitly requested.</li>
<li>Keep stable release baselines separate from unrelated prereleases;
match prerelease identifiers exactly, honor the first prerelease
default, increment existing RCs, and allow higher-level changes to
advance the RC base.</li>
<li>Add path/scope/ignore filters, opt-in squash-bullet parsing,
tag-stream filtering, explicit bump/version inputs, local/moving/rolling
tags, repository/ref/directory overrides, and release metadata
outputs.</li>
<li>Retry transient API reads and fall back to complete local Git
history for compare failures. No history means no guessed release.
Optional soft failure clears release outputs.</li>
</ul>
<h2>Migration</h2>
<p>See <a
href="https://github.com/mathieudutour/github-tag-action/blob/master/docs/migrating-to-v7.md">Migrating
from v6 to v7</a> for changed defaults, workflow examples, prerelease
behavior, and a dry-run validation procedure.</p>
<p>New inputs are opt-in unless explicitly described above and require
v7. See the <a
href="https://github.com/mathieudutour/github-tag-action/blob/master/README.md">README</a>
for the full input contract.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/mathieudutour/github-tag-action/commit/af99e60ce8132224b8e6ebab5023449fe256ed46"><code>af99e60</code></a>
fix CI on windows</li>
<li><a
href="https://github.com/mathieudutour/github-tag-action/commit/8e15535db64483b84d3598dbf36eca1662cdbfe7"><code>8e15535</code></a>
version 7</li>
<li><a
href="https://github.com/mathieudutour/github-tag-action/commit/9d35d648e836d5db77936aa35a3a5c7bc16092c8"><code>9d35d64</code></a>
Bump ws from 7.5.5 to 7.5.10 (<a
href="https://redirect.github.com/mathieudutour/github-tag-action/issues/216">#216</a>)</li>
<li><a
href="https://github.com/mathieudutour/github-tag-action/commit/17d01dc92c1e62b097ea60d6c63b9f2b73c7b998"><code>17d01dc</code></a>
Bump braces from 3.0.2 to 3.0.3 (<a
href="https://redirect.github.com/mathieudutour/github-tag-action/issues/215">#215</a>)</li>
<li>See full diff in <a
href="https://github.com/mathieudutour/github-tag-action/compare/a22cf08638b34d5badda920f9daf6e72c477b07b...af99e60ce8132224b8e6ebab5023449fe256ed46">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mathieudutour/github-tag-action&package-manager=github_actions&previous-version=6.2&new-version=7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 13:57:20 +00:00

105 lines
3.1 KiB
YAML

name: Release
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
release-check:
name: Check if version changed
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
ref: main
persist-credentials: false
- name: Use Node.js from nvmrc
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: ".nvmrc"
- name: Check if version has been updated
id: check
uses: EndBug/version-check@095362f3cd50f690c8fa0e6afeea81834bd8d320 # latest
outputs:
publish: ${{ steps.check.outputs.changed }}
release:
name: Release
needs: release-check
if: ${{ needs.release-check.outputs.publish == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
ref: main
- name: Use Node.js from nvmrc
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
- name: Set up Go for desktop build
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ^1.23.x
cache-dependency-path: desktop/go.sum
id: go
- name: Get version
id: package-version
uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # v1.3.1
- name: Install
run: npm ci
- name: Build
run: |
npm run build-desktop
- name: Tag commit and push
id: tag_version
uses: mathieudutour/github-tag-action@af99e60ce8132224b8e6ebab5023449fe256ed46 # v7.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.package-version.outputs.current-version }}
- name: Create Archives
run: |
zip -r "desktop-${{ steps.package-version.outputs.current-version }}" desktop/bin/
- name: Build Release Notes
id: release_notes
run: |
RELEASE_NOTES_PATH="${PWD}/release_notes.txt"
./build/release-notes.js > ${RELEASE_NOTES_PATH}
echo "release_notes=${RELEASE_NOTES_PATH}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
id: create_regular_release
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
bodyFile: ${{ steps.release_notes.outputs.release_notes }}
artifacts: "desktop-${{ steps.package-version.outputs.current-version }}.zip"
allowUpdates: true
draft: false
prerelease: false