Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vitejs/release-scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.3
Choose a base ref
...
head repository: vitejs/release-scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.4.0
Choose a head ref
  • 4 commits
  • 6 files changed
  • 3 contributors

Commits on Jan 23, 2025

  1. chore(deps): update all non-major dependencies (#63)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 23, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    m1guelpf Miguel Piedrafita
    Copy the full SHA
    dd10e30 View commit details

Commits on Feb 27, 2025

  1. feat: set tag message (#67)

    sapphi-red authored Feb 27, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    m1guelpf Miguel Piedrafita
    Copy the full SHA
    7f5a5b5 View commit details

Commits on Mar 26, 2025

  1. ci: set permissions to workflows (#68)

    sapphi-red authored Mar 26, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    m1guelpf Miguel Piedrafita
    Copy the full SHA
    38c3dbb View commit details
  2. release: v1.4.0

    sapphi-red committed Mar 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    72dc692 View commit details
Showing with 17 additions and 13 deletions.
  1. +1 −0 .github/workflows/ci.yml
  2. +3 −0 .github/workflows/publish.yml
  3. +3 −3 package.json
  4. +6 −6 pnpm-lock.yaml
  5. +3 −3 scripts/release.ts
  6. +1 −1 src/release.ts
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ on:
pull_request:
branches:
- main
permissions: {}
jobs:
ci:
runs-on: ubuntu-latest
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ jobs:
publish:
runs-on: ubuntu-latest
environment: Release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vitejs/release-scripts",
"version": "1.3.3",
"version": "1.4.0",
"description": "@vitejs release scripts",
"license": "MIT",
"main": "dist/index.js",
@@ -35,12 +35,12 @@
},
"devDependencies": {
"@arnaud-barre/tnode": "^0.24.0",
"@types/node": "^22.10.6",
"@types/node": "^22.10.9",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.8",
"esbuild": "^0.24.2",
"prettier": "^3.4.2",
"typescript": "^5.7.3"
},
"packageManager": "pnpm@9.15.3"
"packageManager": "pnpm@9.15.4"
}
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scripts/release.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,9 @@ release({
toTag: (_, version) => `v${version}`,
logChangelog: () =>
console.log(
execSync(
"git log $(git describe --tags --abbrev=0)..HEAD --oneline",
).toString(),
// execSync(
// "git log $(git describe --tags --abbrev=0)..HEAD --oneline",
// ).toString(),
),
generateChangelog: () => {},
getPkgDir: () => ".",
2 changes: 1 addition & 1 deletion src/release.ts
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ export const release: typeof def = async ({
step("\nCommitting changes...");
await runIfNotDry("git", ["add", "-A"]);
await runIfNotDry("git", ["commit", "-m", `release: ${tag}`]);
await runIfNotDry("git", ["tag", tag]);
await runIfNotDry("git", ["tag", "-a", "-m", tag, tag]);
} else {
console.log("No changes to commit.");
return;