Bumps [changesets/action](https://github.com/changesets/action) from 1 to 2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/changesets/action/releases">changesets/action's releases</a>.</em></p> <blockquote> <h2>v2.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/changesets/action/pull/692">#692</a> <a href="cb3f0110d7"><code>cb3f011</code></a> Thanks <a href="https://github.com/Andarist"><code>@Andarist</code></a>! - Release commits and tags are now pushed using the GitHub API by default.</p> <p>Replace the <code>commit-mode</code> input with the boolean <code>push-with-git-cli</code> input. Set <code>push-with-git-cli: true</code> to continue using the Git CLI.</p> <p>Regardless of the push mode, custom GitHub tokens must be passed explicitly through the <code>github-token</code> input. The <code>GITHUB_TOKEN</code> environment variable and credentials configured by <code>actions/checkout</code> or embedded in remote URLs are not substitutes for this input. When the Git CLI is enabled, <code>github-token</code> takes precedence over those repository credentials.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/680">#680</a> <a href="ca57073900"><code>ca57073</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Add a new <code>push-git-tags</code> option that complements <code>create-github-releases</code> to control specifically if git tags should be created but not GitHub releases.</p> <p>If <code>create-github-releases</code> was previously set to <code>false</code>, which also indirectly disabled git tag creation, git tags will now be created instead by default. If this is not desired, set <code>push-git-tags</code> to <code>false</code> explicitly.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/657">#657</a> <a href="4f718b5921"><code>4f718b5</code></a> Thanks <a href="https://github.com/Andarist"><code>@Andarist</code></a>! - Removed compatibility support for old Changesets v1.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/681">#681</a> <a href="73591071e6"><code>7359107</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Rename the root action inputs and outputs to better match the sub-actions' conventions.</p> <p>Inputs:</p> <ul> <li><code>version</code> -> <code>version-script</code></li> <li><code>publish</code> -> <code>publish-script</code></li> <li><code>commit</code> -> <code>commit-message</code></li> <li><code>title</code> -> <code>pr-title</code></li> <li><code>branch</code> -> <code>pr-base-branch</code></li> </ul> <p>Outputs:</p> <ul> <li><code>pull-request-number</code> -> <code>pr-number</code></li> </ul> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/674">#674</a> <a href="164652bdd6"><code>164652b</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Remove support for passing custom GitHub token through the GITHUB_TOKEN environment variable. It should be passed to the <code>github-token</code> input instead.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/659">#659</a> <a href="5649ff41b8"><code>5649ff4</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Remove <code>cwd</code> option for <code>changesets/action</code>. Use the step <code>working-directory</code> option instead to change the directory.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/673">#673</a> <a href="823cf741ca"><code>823cf74</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Update to Changesets v3 packages</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/695">#695</a> <a href="469993ce57"><code>469993c</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Removed <code>.npmrc</code> handling when the <code>NPM_TOKEN</code> environment variable is set.</p> <p>Authentication should be handled via Trusted Publishing instead. If a token is still needed, use <code>actions/setup-node</code> to set it up instead via the <code>registry-url</code> option. Check out the updated action README for more information of setting up npm authentication in GitHub Actions.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/668">#668</a> <a href="0eae789230"><code>0eae789</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Rename the input and output names to kebab-case instead of camelCase to match the official GitHub actions pattern</p> </li> </ul> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/changesets/action/pull/656">#656</a> <a href="a12d90de83"><code>a12d90d</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Add new <code>/select-mode</code>, <code>/version</code>, and <code>/publish</code> sub-actions to better control version and publish steps</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/678">#678</a> <a href="f71ae043ed"><code>f71ae04</code></a> Thanks <a href="https://github.com/Andarist"><code>@Andarist</code></a>! - Published packages detection done through stdout parsing was replaced with one based on the shared output file using <code>CHANGESETS_OUTPUT</code> environment variable. When using custom scripts this environment variable should always be passed down to the Changesets CLI invocations.</p> </li> </ul> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/changesets/action/pull/699">#699</a> <a href="5b307d3df2"><code>5b307d3</code></a> Thanks <a href="https://github.com/Andarist"><code>@Andarist</code></a>! - Validate that projects use Changesets CLI v3 and direct Changesets CLI v2 users to <code>changesets/action@v1</code>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/changesets/action/blob/main/CHANGELOG.md">changesets/action's changelog</a>.</em></p> <blockquote> <h1><code>@changesets/action</code></h1> <h2>2.1.0</h2> <h3>Minor Changes</h3> <ul> <li><a href="https://redirect.github.com/changesets/action/pull/718">#718</a> <a href="3b7c71c440"><code>3b7c71c</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Add a <code>cwd</code> input to the root action, <code>/select-mode</code>, <code>/version</code>, <code>/pack</code>, and <code>/publish</code> sub-actions to set the current working directory to execute Changesets in. This input existed in v1 but was incorrectly removed.</li> </ul> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/changesets/action/pull/716">#716</a> <a href="6f58ba3580"><code>6f58ba3</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Update <code>pr-status</code> message to link to the new faq page</li> </ul> <h2>2.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/changesets/action/pull/692">#692</a> <a href="cb3f0110d7"><code>cb3f011</code></a> Thanks <a href="https://github.com/Andarist"><code>@Andarist</code></a>! - Release commits and tags are now pushed using the GitHub API by default.</p> <p>Replace the <code>commit-mode</code> input with the boolean <code>push-with-git-cli</code> input. Set <code>push-with-git-cli: true</code> to continue using the Git CLI.</p> <p>Regardless of the push mode, custom GitHub tokens must be passed explicitly through the <code>github-token</code> input. The <code>GITHUB_TOKEN</code> environment variable and credentials configured by <code>actions/checkout</code> or embedded in remote URLs are not substitutes for this input. When the Git CLI is enabled, <code>github-token</code> takes precedence over those repository credentials.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/680">#680</a> <a href="ca57073900"><code>ca57073</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Add a new <code>push-git-tags</code> option that complements <code>create-github-releases</code> to control specifically if git tags should be created but not GitHub releases.</p> <p>If <code>create-github-releases</code> was previously set to <code>false</code>, which also indirectly disabled git tag creation, git tags will now be created instead by default. If this is not desired, set <code>push-git-tags</code> to <code>false</code> explicitly.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/657">#657</a> <a href="4f718b5921"><code>4f718b5</code></a> Thanks <a href="https://github.com/Andarist"><code>@Andarist</code></a>! - Removed compatibility support for old Changesets v1.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/681">#681</a> <a href="73591071e6"><code>7359107</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Rename the root action inputs and outputs to better match the sub-actions' conventions.</p> <p>Inputs:</p> <ul> <li><code>version</code> -> <code>version-script</code></li> <li><code>publish</code> -> <code>publish-script</code></li> <li><code>commit</code> -> <code>commit-message</code></li> <li><code>title</code> -> <code>pr-title</code></li> <li><code>branch</code> -> <code>pr-base-branch</code></li> </ul> <p>Outputs:</p> <ul> <li><code>pull-request-number</code> -> <code>pr-number</code></li> </ul> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/674">#674</a> <a href="164652bdd6"><code>164652b</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Remove support for passing custom GitHub token through the GITHUB_TOKEN environment variable. It should be passed to the <code>github-token</code> input instead.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/659">#659</a> <a href="5649ff41b8"><code>5649ff4</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Remove <code>cwd</code> option for <code>changesets/action</code>. Use the step <code>working-directory</code> option instead to change the directory.</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/673">#673</a> <a href="823cf741ca"><code>823cf74</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Update to Changesets v3 packages</p> </li> <li> <p><a href="https://redirect.github.com/changesets/action/pull/695">#695</a> <a href="469993ce57"><code>469993c</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Removed <code>.npmrc</code> handling when the <code>NPM_TOKEN</code> environment variable is set.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="198f833dd7"><code>198f833</code></a> v2.1.0</li> <li><a href="7545547fe4"><code>7545547</code></a> Version Packages (<a href="https://redirect.github.com/changesets/action/issues/719">#719</a>)</li> <li><a href="3043070b0d"><code>3043070</code></a> Prevent test warning annotations (<a href="https://redirect.github.com/changesets/action/issues/720">#720</a>)</li> <li><a href="3b7c71c440"><code>3b7c71c</code></a> Add back cwd input (<a href="https://redirect.github.com/changesets/action/issues/718">#718</a>)</li> <li><a href="6f58ba3580"><code>6f58ba3</code></a> Update pr-status message links to new faq (<a href="https://redirect.github.com/changesets/action/issues/716">#716</a>)</li> <li><a href="e52ce9e59b"><code>e52ce9e</code></a> Version Packages (<a href="https://redirect.github.com/changesets/action/issues/715">#715</a>)</li> <li><a href="78fdc6bb2e"><code>78fdc6b</code></a> Exit pre mode (<a href="https://redirect.github.com/changesets/action/issues/714">#714</a>)</li> <li><a href="187a104ea0"><code>187a104</code></a> Update deps for stable (<a href="https://redirect.github.com/changesets/action/issues/709">#709</a>)</li> <li><a href="d11394aa52"><code>d11394a</code></a> Version Packages (next) (<a href="https://redirect.github.com/changesets/action/issues/712">#712</a>)</li> <li><a href="5fa67671df"><code>5fa6767</code></a> Fix support for prerelease exits using the new <code>.changeset/pre</code> layout (<a href="https://redirect.github.com/changesets/action/issues/711">#711</a>)</li> <li>Additional commits viewable in <a href="https://github.com/changesets/action/compare/v1...v2">compare view</a></li> </ul> </details> <br /> [](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>
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
# Release workflow: npm publishing via changesets + OIDC
|
|
#
|
|
# Uses npm OIDC trusted publishing — no NPM_TOKEN secret needed.
|
|
# Requires npm 11.5.1+ for OIDC support.
|
|
#
|
|
# FNXC:UpdateChannels 2026-07-19-13:30:
|
|
# STABLE-CHANNEL ONLY. This workflow publishes with npm's implicit `latest`
|
|
# dist-tag and must never run for a beta: betas are cut from `main` by
|
|
# `pnpm release --channel beta`, which publishes with an explicit `--tag beta`
|
|
# (see scripts/release.mjs and docs/plans/2026-07-19-001-beta-stable-release-tracks-plan.md).
|
|
# If beta publishing ever moves to CI, this workflow needs a channel input that
|
|
# threads `--tag beta` into the publish command — do not dispatch it as-is from
|
|
# a pre-mode (.changeset/pre.json) checkout.
|
|
|
|
name: Version & Release
|
|
|
|
# Auto-trigger disabled; workflow preserved for manual use via workflow_dispatch.
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
release:
|
|
name: Version or Publish
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Setup Node and pnpm
|
|
uses: ./.github/actions/setup-node-pnpm
|
|
with:
|
|
registry-url: "https://registry.npmjs.org"
|
|
skip-install: "true"
|
|
|
|
- name: Ensure modern npm (OIDC support)
|
|
run: npm install -g npm@11.6.4
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Create Release Pull Request or Publish to npm
|
|
uses: changesets/action@v2
|
|
with:
|
|
version: pnpm release:version
|
|
# Explicit --tag latest: every publish path names its dist-tag (see channel note above).
|
|
publish: pnpm -r publish --provenance --access public --tag latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_CONFIG_PROVENANCE: true
|