Compare commits

...
7 Commits
Author SHA1 Message Date
Mateusz Burzyński ae5c373a18 Configure Changesets for maintenance/v1 line (#655) 2026-06-10 08:59:32 +00:00
Mateusz Burzyński 310b913a84 Don't update main release lines for prerelease versions (#653) 2026-06-10 01:40:16 +00:00
dependabot[bot] 7e238815d9 Bump the github-actions group across 1 directory with 3 updates (#648)
Bumps the github-actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token).


Updates `actions/checkout` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10)

Updates `zizmorcore/zizmor-action` from 0.5.3 to 0.5.6
- [Release notes](https://github.com/zizmorcore/zizmor-action/releases)
- [Commits](https://github.com/zizmorcore/zizmor-action/compare/b1d7e1fb5de872772f31590499237e7cce841e8e...5f14fd08f7cf1cb1609c1e344975f152c7ee938d)

Updates `actions/create-github-app-token` from 3.1.1 to 3.2.0
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/1b10c78c7865c340bc4f6099eb2f838309f1e8c3...bcd2ba49218906704ab6c1aa796996da409d3eb1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/create-github-app-token
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: zizmorcore/zizmor-action
  dependency-version: 0.5.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 16:46:46 +00:00
dependabot[bot] c211f5efab Bump the production-dependencies group with 2 updates (#649)
Bumps the production-dependencies group with 2 updates: [semver](https://github.com/npm/node-semver) and [tinyexec](https://github.com/tinylibs/tinyexec).


Updates `semver` from 7.8.0 to 7.8.1
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1)

Updates `tinyexec` from 1.1.2 to 1.2.4
- [Release notes](https://github.com/tinylibs/tinyexec/releases)
- [Commits](https://github.com/tinylibs/tinyexec/compare/1.1.2...1.2.4)

---
updated-dependencies:
- dependency-name: semver
  dependency-version: 7.8.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: tinyexec
  dependency-version: 1.2.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 16:45:27 +00:00
Bjorn LuandMateusz Burzyński 70a83f1bd1 Update CI for prerelease and backports (#646)
* Update CI for prerelease and backports

* Fix

* Update permissions

* Apply suggestions from code review

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>

* comment

---------

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2026-06-09 09:45:37 +00:00
Bjorn Lu 5273feb188 Update dependabot config (#647) 2026-06-09 08:06:36 +00:00
Adam Haglundandbluwy 8b7799e7d8 update note regarding pull_request_target (#644)
* Update README with pull_request_target usage guidelines

Add caution and warning notes regarding the use of pull_request_target event.

* Update README with pull_request_target caution

Added caution about using pull_request_target and alternative options.

* update wording for executing untrusted code

* Format

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2026-06-08 15:05:55 +00:00
9 changed files with 102 additions and 54 deletions
+4 -2
View File
@@ -2,12 +2,14 @@
"$schema": "https://unpkg.com/@changesets/config@1.6.2/schema.json", "$schema": "https://unpkg.com/@changesets/config@1.6.2/schema.json",
"changelog": [ "changelog": [
"@changesets/changelog-github", "@changesets/changelog-github",
{ "repo": "changesets/action" } {
"repo": "changesets/action"
}
], ],
"commit": false, "commit": false,
"linked": [], "linked": [],
"access": "restricted", "access": "restricted",
"baseBranch": "main", "baseBranch": "maintenance/v1",
"updateInternalDependencies": "patch", "updateInternalDependencies": "patch",
"ignore": [] "ignore": []
} }
+27 -8
View File
@@ -1,13 +1,32 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2 version: 2
updates: updates:
- package-ecosystem: "npm" # See documentation for possible values - package-ecosystem: "npm"
directory: "/" # Location of package manifests directory: "/"
schedule: schedule:
interval: "weekly" interval: "monthly"
cooldown: cooldown:
default-days: 7 default-days: 7
open-pull-requests-limit: 10
versioning-strategy: increase
groups:
production-dependencies:
dependency-type: "production"
update-types:
- minor
- patch
development-dependencies:
dependency-type: "development"
update-types:
- minor
- patch
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
cooldown:
default-days: 7
open-pull-requests-limit: 5
groups:
github-actions:
patterns:
- "*"
+11 -11
View File
@@ -7,6 +7,9 @@ on:
merge_group: merge_group:
branches: branches:
- main - main
- next
# merge group rulesets don't allow wildcards so in settings each maintenance branch needs to be added separately
- "maintenance/v*" # branch rulesets don't support v[0-9]+
permissions: permissions:
contents: read contents: read
@@ -24,12 +27,12 @@ jobs:
security-events: write # allow writing security events security-events: write # allow writing security events
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: false persist-credentials: false
- name: Run zizmor - name: Run zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with: with:
persona: pedantic persona: pedantic
annotations: true annotations: true
@@ -37,12 +40,11 @@ jobs:
test: test:
name: Test name: Test
timeout-minutes: 20
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20
steps: steps:
- name: Check out repo - name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: false persist-credentials: false
@@ -53,12 +55,11 @@ jobs:
typecheck: typecheck:
name: Typecheck name: Typecheck
timeout-minutes: 20
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20
steps: steps:
- name: Check out repo - name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: false persist-credentials: false
@@ -69,12 +70,11 @@ jobs:
lint: lint:
name: Lint name: Lint
timeout-minutes: 20
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20
steps: steps:
- name: Check out repo - name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: false persist-credentials: false
+11 -9
View File
@@ -4,6 +4,8 @@ on:
push: push:
branches: branches:
- main - main
- next
- "maintenance/v*" # branch rulesets don't support v[0-9]+
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@@ -21,12 +23,10 @@ jobs:
outputs: outputs:
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
permissions: permissions:
contents: write # to create release (changesets/action) contents: read # to check out repo (actions/checkout)
issues: write # to post issue comments (changesets/action)
pull-requests: write # to create pull request (changesets/action)
steps: steps:
- name: Check out repo - name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: false persist-credentials: false
@@ -37,11 +37,13 @@ jobs:
- name: Build - name: Build
run: pnpm build run: pnpm build
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token id: app-token
with: with:
client-id: ${{ vars.APP_CLIENT_ID }} client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }} private-key: ${{ secrets.APP_PRIVATE_KEY }}
permission-contents: write # to create version commits (changesets/action)
permission-pull-requests: write # to create pull request (changesets/action)
- name: Create or update release pull request - name: Create or update release pull request
id: changesets id: changesets
@@ -60,17 +62,17 @@ jobs:
permissions: permissions:
contents: write # to create release and have it authored by github-actions (changesets/action) contents: write # to create release and have it authored by github-actions (changesets/action)
steps: steps:
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token id: app-token
with: with:
client-id: ${{ vars.APP_CLIENT_ID }} client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }} private-key: ${{ secrets.APP_PRIVATE_KEY }}
permission-contents: write # to bypass branch and tag protection rules (release.ts)
- name: Check out repo - name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: true persist-credentials: false
# we need this token to bypass the branch and tag protection rules
token: ${{ steps.app-token.outputs.token }} token: ${{ steps.app-token.outputs.token }}
- uses: ./.github/actions/ci-setup - uses: ./.github/actions/ci-setup
+1 -1
View File
@@ -123,7 +123,7 @@ jobs:
steps: steps:
- name: Check out repo - name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with: with:
persist-credentials: false persist-credentials: false
+2 -2
View File
@@ -30,8 +30,8 @@
"@octokit/plugin-throttling": "^11.0.3", "@octokit/plugin-throttling": "^11.0.3",
"human-id": "^4.1.3", "human-id": "^4.1.3",
"markdown-table": "^3.0.4", "markdown-table": "^3.0.4",
"semver": "^7.8.0", "semver": "^7.8.1",
"tinyexec": "^1.1.2" "tinyexec": "^1.2.4"
}, },
"devDependencies": { "devDependencies": {
"@changesets/changelog-github": "^0.7.0", "@changesets/changelog-github": "^0.7.0",
+25 -16
View File
@@ -53,11 +53,11 @@ importers:
specifier: ^3.0.4 specifier: ^3.0.4
version: 3.0.4 version: 3.0.4
semver: semver:
specifier: ^7.8.0 specifier: ^7.8.1
version: 7.8.0 version: 7.8.1
tinyexec: tinyexec:
specifier: ^1.1.2 specifier: ^1.2.4
version: 1.1.2 version: 1.2.4
devDependencies: devDependencies:
'@changesets/changelog-github': '@changesets/changelog-github':
specifier: ^0.7.0 specifier: ^0.7.0
@@ -1046,8 +1046,8 @@ packages:
safer-buffer@2.1.2: safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
semver@7.8.0: semver@7.8.1:
resolution: {integrity: sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==} resolution: {integrity: sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==}
engines: {node: '>=10'} engines: {node: '>=10'}
hasBin: true hasBin: true
@@ -1115,14 +1115,18 @@ packages:
tinybench@2.9.0: tinybench@2.9.0:
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
tinyexec@1.1.2: tinyexec@1.2.4:
resolution: {integrity: sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==} resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==}
engines: {node: '>=18'} engines: {node: '>=18'}
tinyglobby@0.2.16: tinyglobby@0.2.16:
resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==} resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}
engines: {node: '>=12.0.0'} engines: {node: '>=12.0.0'}
tinyglobby@0.2.17:
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
engines: {node: '>=12.0.0'}
tinypool@2.1.0: tinypool@2.1.0:
resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==} resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==}
engines: {node: ^20.0.0 || >=22.0.0} engines: {node: ^20.0.0 || >=22.0.0}
@@ -1328,7 +1332,7 @@ snapshots:
outdent: 0.5.0 outdent: 0.5.0
prettier: 2.8.8 prettier: 2.8.8
resolve-from: 5.0.0 resolve-from: 5.0.0
semver: 7.8.0 semver: 7.8.1
'@changesets/assemble-release-plan@6.0.10': '@changesets/assemble-release-plan@6.0.10':
dependencies: dependencies:
@@ -1337,7 +1341,7 @@ snapshots:
'@changesets/should-skip-package': 0.1.2 '@changesets/should-skip-package': 0.1.2
'@changesets/types': 6.1.0 '@changesets/types': 6.1.0
'@manypkg/get-packages': 1.1.3 '@manypkg/get-packages': 1.1.3
semver: 7.8.0 semver: 7.8.1
'@changesets/changelog-git@0.2.1': '@changesets/changelog-git@0.2.1':
dependencies: dependencies:
@@ -1376,7 +1380,7 @@ snapshots:
package-manager-detector: 0.2.11 package-manager-detector: 0.2.11
picocolors: 1.1.1 picocolors: 1.1.1
resolve-from: 5.0.0 resolve-from: 5.0.0
semver: 7.8.0 semver: 7.8.1
spawndamnit: 3.0.1 spawndamnit: 3.0.1
term-size: 2.2.1 term-size: 2.2.1
transitivePeerDependencies: transitivePeerDependencies:
@@ -1402,7 +1406,7 @@ snapshots:
'@changesets/types': 6.1.0 '@changesets/types': 6.1.0
'@manypkg/get-packages': 1.1.3 '@manypkg/get-packages': 1.1.3
picocolors: 1.1.1 picocolors: 1.1.1
semver: 7.8.0 semver: 7.8.1
'@changesets/get-github-info@0.8.0': '@changesets/get-github-info@0.8.0':
dependencies: dependencies:
@@ -2234,7 +2238,7 @@ snapshots:
safer-buffer@2.1.2: {} safer-buffer@2.1.2: {}
semver@7.8.0: {} semver@7.8.1: {}
set-function-length@1.2.2: set-function-length@1.2.2:
dependencies: dependencies:
@@ -2296,13 +2300,18 @@ snapshots:
tinybench@2.9.0: {} tinybench@2.9.0: {}
tinyexec@1.1.2: {} tinyexec@1.2.4: {}
tinyglobby@0.2.16: tinyglobby@0.2.16:
dependencies: dependencies:
fdir: 6.5.0(picomatch@4.0.4) fdir: 6.5.0(picomatch@4.0.4)
picomatch: 4.0.4 picomatch: 4.0.4
tinyglobby@0.2.17:
dependencies:
fdir: 6.5.0(picomatch@4.0.4)
picomatch: 4.0.4
tinypool@2.1.0: {} tinypool@2.1.0: {}
tinyrainbow@3.1.0: {} tinyrainbow@3.1.0: {}
@@ -2344,7 +2353,7 @@ snapshots:
dependencies: dependencies:
picomatch: 4.0.4 picomatch: 4.0.4
rolldown: 1.0.1 rolldown: 1.0.1
tinyglobby: 0.2.16 tinyglobby: 0.2.17
optionalDependencies: optionalDependencies:
'@types/node': 24.12.4 '@types/node': 24.12.4
fsevents: 2.3.3 fsevents: 2.3.3
@@ -2366,7 +2375,7 @@ snapshots:
picomatch: 4.0.4 picomatch: 4.0.4
std-env: 4.1.0 std-env: 4.1.0
tinybench: 2.9.0 tinybench: 2.9.0
tinyexec: 1.1.2 tinyexec: 1.2.4
tinyglobby: 0.2.16 tinyglobby: 0.2.16
tinyrainbow: 3.1.0 tinyrainbow: 3.1.0
vite: 8.0.13(@types/node@24.12.4) vite: 8.0.13(@types/node@24.12.4)
+15 -5
View File
@@ -2,7 +2,18 @@
This action generates the changesets status in PRs, e.g. whether it has changeset files and which packages will be released if the PR is merged. This action generates the changesets status in PRs, e.g. whether it has changeset files and which packages will be released if the PR is merged.
It requires the repo to be checked out, and automatically fetches the PR head ref into a temporary detached worktree in order to infer the changed files and packages. It also requires the [`pull_request_target`](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target) event to be triggered in order to have permissions to comment on the PR and to work in PRs from forks. It requires the repo to be checked out, and automatically fetches the PR head ref into a temporary detached worktree in order to infer the changed files and packages.
See the [action metadata](action.yml) for details on the inputs and outputs.
> [!CAUTION]
> **This action uses `pull_request_target` by default to support PRs from forks.**
>
> **Do not run untrusted code** when using the `pull_request_target` event.
>
> The example below only **_checks out_** and **_reads_** code, and does not **_execute_** any code from the fork.
>
> Read more about the `pull_request_target` event in the [GitHub documentation](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target).
You can also use the [`pull_request`](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request) event if you prefer to lock permissions down and not run for PRs from forks. Make sure to add an if check to prevent the action from failing in fork PRs: You can also use the [`pull_request`](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request) event if you prefer to lock permissions down and not run for PRs from forks. Make sure to add an if check to prevent the action from failing in fork PRs:
@@ -13,10 +24,7 @@ jobs:
# ... # ...
``` ```
See the [action metadata](action.yml) for details on the inputs and outputs. You can also use the [Changesets Bot](https://github.com/apps/changeset-bot) if you don't want an extra action in your repo, or are worried about the `pull_request_target` event.
> [!WARNING]
> **Do not run untrusted code** when using the `pull_request_target` event. The example below only checks out code and does not run any code from the PR. Read more about the `pull_request_target` event in the [GitHub documentation](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target).
## Example setup ## Example setup
@@ -27,6 +35,8 @@ name: Comment Changesets status in PRs
on: on:
pull_request_target: pull_request_target:
permissions: {} # require explicitly stating all permissions in each job
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true cancel-in-progress: true
+6
View File
@@ -4,6 +4,7 @@ import pkgJson from "../package.json" with { type: "json" };
const tag = `v${pkgJson.version}`; const tag = `v${pkgJson.version}`;
const releaseLine = `v${pkgJson.version.split(".")[0]}`; const releaseLine = `v${pkgJson.version.split(".")[0]}`;
const isPrerelease = pkgJson.version.includes("-");
process.chdir(path.join(import.meta.dirname, "..")); process.chdir(path.join(import.meta.dirname, ".."));
@@ -31,6 +32,11 @@ process.chdir(path.join(import.meta.dirname, ".."));
await exec("changeset", ["tag"]); await exec("changeset", ["tag"]);
if (isPrerelease) {
await exec("git", ["push", "origin", `refs/tags/${tag}`]);
return;
}
await exec("git", [ await exec("git", [
"push", "push",
"--force", "--force",