Skip to content

Commit e7444cd

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents b677558 + 7751d94 commit e7444cd

26 files changed

Lines changed: 1127 additions & 394 deletions

File tree

.github/actions/build-upstream/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ runs:
3636
# Cache NAPI bindings and Rust CLI binary (the slow parts, especially on Windows)
3737
- name: Restore NAPI binding cache
3838
id: cache-restore
39-
uses: actions/cache/restore@94b89442628ad1d101e352b7ee38f30e1bef108e # v5
39+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4040
with:
4141
path: |
4242
packages/cli/binding/*.node
@@ -151,7 +151,7 @@ runs:
151151

152152
- name: Save NAPI binding cache
153153
if: steps.cache-restore.outputs.cache-hit != 'true'
154-
uses: actions/cache/save@94b89442628ad1d101e352b7ee38f30e1bef108e # v5
154+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
155155
with:
156156
path: |
157157
packages/cli/binding/*.node

.github/actions/download-rolldown-binaries/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ runs:
5050
fi
5151
env:
5252
GITHUB_TOKEN: ${{ inputs.github-token }}
53-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
53+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5454
if: ${{ inputs.upload == 'true' }}
5555
with:
5656
name: rolldown-binaries

.github/workflows/ci.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- name: Optimize CI
3232
id: check_skip
33+
# v0.0.9 still declares `using: node20`; emits a Node 20 deprecation warning until upstream ships a node24 release.
34+
# https://github.com/withgraphite/graphite-ci-action
3335
uses: withgraphite/graphite-ci-action@9bc969adfd43bb790da3b64b543c78c75cef9689 # v0.0.9
3436
with:
3537
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
@@ -93,7 +95,7 @@ jobs:
9395
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
9496
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
9597
96-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
98+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
9799
with:
98100
save-cache: ${{ github.ref_name == 'main' }}
99101
cache-key: test
@@ -162,7 +164,7 @@ jobs:
162164
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
163165
- uses: ./.github/actions/clone
164166

165-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
167+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
166168
with:
167169
save-cache: ${{ github.ref_name == 'main' }}
168170
cache-key: lint
@@ -175,11 +177,11 @@ jobs:
175177
# cargo clippy --all-targets --all-features -- -D warnings
176178
# RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
177179
178-
- uses: crate-ci/typos@bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0
180+
- uses: crate-ci/typos@5374cbf686e897b15713110e233094e2874de7ef # v1.46.1
179181
with:
180182
files: .
181183

182-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
184+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
183185

184186
- name: Install docs dependencies
185187
run: pnpm -C docs install --frozen-lockfile
@@ -219,18 +221,18 @@ jobs:
219221
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
220222
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
221223
222-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
224+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
223225
with:
224226
save-cache: ${{ github.ref_name == 'main' }}
225227
cache-key: cli-e2e-test-${{ matrix.target }}
226228
target-dir: ${{ runner.os == 'Windows' && format('{0}/target', env.DEV_DRIVE) || '' }}
227229

228-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
230+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
229231

230232
- name: Install docs dependencies
231233
run: pnpm -C docs install --frozen-lockfile
232234

233-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
235+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
234236
with:
235237
name: rolldown-binaries
236238
path: ./rolldown/packages/rolldown/src
@@ -687,18 +689,18 @@ jobs:
687689
shell: bash
688690
run: mkdir -p "$TEMP" "$TMP"
689691

690-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
692+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
691693
with:
692694
save-cache: ${{ github.ref_name == 'main' }}
693695
cache-key: cli-snap-test-${{ matrix.target }}
694696
target-dir: ${{ runner.os == 'Windows' && format('{0}/target', env.DEV_DRIVE) || '' }}
695697

696-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
698+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
697699

698700
- name: Install docs dependencies
699701
run: pnpm -C docs install --frozen-lockfile
700702

701-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
703+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
702704
with:
703705
name: rolldown-binaries
704706
path: ./rolldown/packages/rolldown/src
@@ -735,14 +737,14 @@ jobs:
735737
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
736738
- uses: ./.github/actions/clone
737739

738-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
740+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
739741
with:
740742
save-cache: ${{ github.ref_name == 'main' }}
741743
cache-key: cli-e2e-test-musl
742744

743-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
745+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
744746

745-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
747+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
746748
with:
747749
name: rolldown-binaries
748750
path: ./rolldown/packages/rolldown/src
@@ -814,14 +816,14 @@ jobs:
814816
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
815817
- uses: ./.github/actions/clone
816818

817-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
819+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
818820
with:
819821
save-cache: ${{ github.ref_name == 'main' }}
820822
cache-key: install-e2e-test
821823

822-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
824+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
823825

824-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
826+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
825827
with:
826828
name: rolldown-binaries
827829
path: ./rolldown/packages/rolldown/src

.github/workflows/deny.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
path: rolldown
4242
ref: ${{ steps.upstream-versions.outputs.ROLLDOWN_HASH }}
4343

44-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
44+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
4545
with:
4646
restore-cache: false
4747
# Pinned to 0.18.6+ for CVSS 4.0 support (EmbarkStudios/cargo-deny#805)

.github/workflows/e2e-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ jobs:
8787
shell: powershell
8888
run: Set-MpPreference -DisableRealtimeMonitoring $true
8989

90-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
90+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
9191
with:
9292
save-cache: ${{ github.ref_name == 'main' }}
9393
cache-key: e2e-build-${{ matrix.os }}
9494

95-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
95+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
9696

97-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
97+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9898
with:
9999
name: rolldown-binaries
100100
path: ./rolldown/packages/rolldown/src
@@ -117,7 +117,7 @@ jobs:
117117
ls -la tmp/tgz
118118
119119
- name: Upload tgz artifacts
120-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
120+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
121121
with:
122122
name: vite-plus-packages-${{ matrix.os }}
123123
path: tmp/tgz/
@@ -373,13 +373,13 @@ jobs:
373373
shell: powershell
374374
run: Set-MpPreference -DisableRealtimeMonitoring $true
375375

376-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
376+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
377377
with:
378378
node-version: ${{ matrix.project.node-version }}
379379
package-manager-cache: false
380380

381381
- name: Download vite-plus packages
382-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
382+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
383383
with:
384384
name: vite-plus-packages-${{ matrix.os }}
385385
path: tmp/tgz

.github/workflows/release.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
7777

78-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
78+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7979
with:
8080
node-version-file: .node-version
8181
package-manager-cache: false
@@ -86,34 +86,34 @@ jobs:
8686
run: pnpm install
8787

8888
- name: Download cli dist
89-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
89+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9090
with:
9191
path: packages/cli/dist
9292
pattern: cli
9393
merge-multiple: true
9494

9595
- name: Download cli docs
96-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
96+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9797
with:
9898
path: packages/cli/docs
9999
pattern: cli-docs
100100
merge-multiple: true
101101

102102
- name: Download cli binding
103-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
103+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
104104
with:
105105
path: packages/cli/artifacts
106106
pattern: vite-plus-native-*
107107

108108
- name: Download core dist
109-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
109+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
110110
with:
111111
path: packages/core/dist
112112
pattern: core
113113
merge-multiple: true
114114

115115
- name: Download LICENSE files
116-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
116+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
117117
with:
118118
path: packages
119119
pattern: licenses
@@ -126,13 +126,13 @@ jobs:
126126
upload: 'false'
127127

128128
- name: Download Rust CLI binaries
129-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
129+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
130130
with:
131131
path: rust-cli-artifacts
132132
pattern: vite-global-cli-*
133133

134134
- name: Download installer binaries (Windows)
135-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
135+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
136136
with:
137137
path: installer-artifacts
138138
pattern: vp-setup-*
@@ -205,7 +205,7 @@ jobs:
205205
id: release
206206
with:
207207
body_path: ./RELEASE_BODY.md
208-
draft: false
208+
draft: true
209209
make_latest: ${{ inputs.npm_tag == 'latest' }}
210210
prerelease: ${{ inputs.npm_tag == 'alpha' }}
211211
name: vite-plus v${{ env.VERSION }}
@@ -214,6 +214,11 @@ jobs:
214214
files: |
215215
installer-release/vp-setup-*.exe
216216
217+
- name: Publish GitHub Release
218+
env:
219+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
220+
run: gh release edit "v${VERSION}" --draft=false --repo "${{ github.repository }}"
221+
217222
- name: Send Discord notification
218223
if: ${{ inputs.npm_tag == 'latest' }}
219224
uses: tsickert/discord-webhook@b217a69502f52803de774ded2b1ab7c282e99645 # v7.0.0

.github/workflows/reusable-release-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ jobs:
4848
steps:
4949
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
5050
- uses: ./.github/actions/clone
51-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
51+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
5252
with:
5353
save-cache: ${{ github.ref_name == 'main' }}
5454
cache-key: ${{ inputs.cache-key }}
5555

5656
- name: Rustup Adds Target
5757
run: rustup target add ${{ matrix.settings.target }}
5858

59-
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
59+
- uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0
6060

6161
- name: Set binding version
6262
shell: bash
@@ -86,14 +86,14 @@ jobs:
8686
target: ${{ matrix.settings.target }}
8787

8888
- name: Upload Vite+ native artifact
89-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
89+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9090
with:
9191
name: vite-plus-native-${{ matrix.settings.target }}
9292
path: ./packages/cli/binding/*.node
9393
if-no-files-found: error
9494

9595
- name: Upload Rust CLI binary artifact
96-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
96+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9797
with:
9898
name: vite-global-cli-${{ matrix.settings.target }}
9999
path: |
@@ -104,7 +104,7 @@ jobs:
104104

105105
- name: Upload installer binary artifact (Windows only)
106106
if: contains(matrix.settings.target, 'windows')
107-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
107+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
108108
with:
109109
name: vp-setup-${{ matrix.settings.target }}
110110
path: ./target/${{ matrix.settings.target }}/release/vp-setup.exe
@@ -116,39 +116,39 @@ jobs:
116116
rm ./packages/core/dist/**/*.node
117117
118118
- name: Upload core dist
119-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
119+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
120120
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
121121
with:
122122
name: core
123123
path: ./packages/core/dist
124124
if-no-files-found: error
125125

126126
- name: Upload prompts dist
127-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
127+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
128128
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
129129
with:
130130
name: prompts
131131
path: ./packages/prompts/dist
132132
if-no-files-found: error
133133

134134
- name: Upload cli dist
135-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
135+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
136136
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
137137
with:
138138
name: cli
139139
path: ./packages/cli/dist
140140
if-no-files-found: error
141141

142142
- name: Upload cli docs
143-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
143+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
144144
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
145145
with:
146146
name: cli-docs
147147
path: ./packages/cli/docs
148148
if-no-files-found: error
149149

150150
- name: Upload LICENSE files
151-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
151+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
152152
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
153153
with:
154154
name: licenses

.github/workflows/test-standalone-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ jobs:
807807
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
808808
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
809809
810-
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
810+
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
811811
with:
812812
target-dir: ${{ format('{0}/target', env.DEV_DRIVE) }}
813813

0 commit comments

Comments
 (0)