refactor(release): single release command (#1273)

pull/1272/merge
Jonathan Haines 2025-07-02 11:35:52 +10:00 committed by GitHub
parent 27461cf19b
commit ed736b9e3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -42,8 +42,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
publish: yarn run publish && deno install --no-lock && deno publish
version: yarn run version:npm && yarn run version:jsr
publish: yarn run publish
version: yarn run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -10,7 +10,10 @@
"scripts": {
"build": "yarn workspaces foreach --all --topological --parallel --verbose run build",
"publint": "yarn workspaces foreach --all --topological --parallel --verbose run publint",
"publish": "yarn workspaces foreach --all --no-private --topological --verbose npm publish --tolerate-republish && changeset tag",
"publish": "yarn publish:npm && yarn publish:jsr",
"publish:npm": "yarn workspaces foreach --all --no-private --topological --verbose npm publish --tolerate-republish && changeset tag",
"publish:jsr": "deno install --no-lock && deno publish",
"version": "yarn version:npm && yarn version:jsr",
"version:npm": "changeset version",
"version:jsr": "yarn workspaces foreach --all --no-private --parallel run version:jsr",
"version:get": "jq -r .version $INIT_CWD/package.json",