@willh/now 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +12 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,38 @@
|
|
|
6
6
|
|
|
7
7
|
* * *
|
|
8
8
|
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
* * *
|
|
12
|
+
|
|
13
|
+
## [0.1.3] - 2026-08-09
|
|
14
|
+
|
|
15
|
+
### 新增
|
|
16
|
+
|
|
17
|
+
- `now config set --help` 顯示可用的設定鍵、值格式與秘密值管理說明。
|
|
18
|
+
- Azure Storage Blob 使用預設 `now` 命令部署且尚未設定 `azure_blob.prefix` 時,可互動輸入並保存 Blob 路徑前綴。
|
|
19
|
+
- 新增 `bump-and-release` 發版技能與版本更新、CHANGELOG 區塊擷取腳本,串接版本檢查、本機驗證與發版查證流程。
|
|
20
|
+
|
|
21
|
+
* * *
|
|
22
|
+
|
|
23
|
+
## [0.1.2] - 2026-07-19
|
|
24
|
+
|
|
25
|
+
### 新增
|
|
26
|
+
|
|
27
|
+
- 部署命令新增 `--source`、`--prefix` 與 `--remote_dir` 具名旗標,可在單次部署覆寫來源目錄、Azure Storage Blob 前綴與 FTP 遠端目錄,且不會改寫 `.now.json`。
|
|
28
|
+
- `--remote-dir` 可作為 `--remote_dir` 的別名。
|
|
29
|
+
|
|
30
|
+
### 變更
|
|
31
|
+
|
|
32
|
+
- 將 GitHub Actions 的 artifact、Node.js 與 Pages actions 升級至 Node.js 24 版本,消除 Node.js 20 棄用警告。
|
|
33
|
+
|
|
34
|
+
### 修正
|
|
35
|
+
|
|
36
|
+
- Release workflow 在 GitHub Release 資產發布成功後直接呼叫 npm 發布 workflow,不再依賴 `GITHUB_TOKEN` 無法遞迴觸發的 `release.published` 事件。
|
|
37
|
+
- npm 發布 workflow 新增 release tag 格式與 `package.json` 版本一致性驗證,並保留帶入 tag 的手動執行入口。
|
|
38
|
+
|
|
39
|
+
* * *
|
|
40
|
+
|
|
9
41
|
## [0.1.1] - 2026-07-18
|
|
10
42
|
|
|
11
43
|
### 新增
|
|
@@ -47,5 +79,8 @@
|
|
|
47
79
|
- 提供 macOS Apple Silicon、macOS Intel、Linux x64 glibc 與 Windows x64 原生執行檔及 SHA-256 checksum。
|
|
48
80
|
- 提供 npm、Unix-like 安裝腳本、Windows PowerShell 安裝腳本與 GitHub Release 發布流程。
|
|
49
81
|
|
|
82
|
+
[Unreleased]: https://github.com/doggy8088/now/compare/v0.1.3...HEAD
|
|
83
|
+
[0.1.3]: https://github.com/doggy8088/now/compare/v0.1.2...v0.1.3
|
|
84
|
+
[0.1.2]: https://github.com/doggy8088/now/compare/v0.1.1...v0.1.2
|
|
50
85
|
[0.1.1]: https://github.com/doggy8088/now/compare/v0.1.0...v0.1.1
|
|
51
86
|
[0.1.0]: https://github.com/doggy8088/now/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -310,6 +310,17 @@ now ./public
|
|
|
310
310
|
now config set source reports/example
|
|
311
311
|
```
|
|
312
312
|
|
|
313
|
+
也可以使用具名旗標,單次覆寫 `.now.json` 內的部署參數:
|
|
314
|
+
|
|
315
|
+
```sh
|
|
316
|
+
now --source dist
|
|
317
|
+
now deploy --source dist
|
|
318
|
+
now deploy --prefix releases/2026-07-18
|
|
319
|
+
now deploy --remote_dir /public_html/releases/2026-07-18
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
`--source` 覆寫 `source`,`--prefix` 覆寫 `azure_blob.prefix`,`--remote_dir` 覆寫 `ftp.remote_dir`。這些值只套用於當次部署,不會改寫 `.now.json`。`--remote-dir` 也可作為 `--remote_dir` 的別名。
|
|
323
|
+
|
|
313
324
|
* * *
|
|
314
325
|
|
|
315
326
|
## URL 選擇規則
|
|
@@ -436,7 +447,7 @@ now-x86_64-pc-windows-msvc.zip
|
|
|
436
447
|
now-x86_64-pc-windows-msvc.zip.sha256
|
|
437
448
|
```
|
|
438
449
|
|
|
439
|
-
CI 會執行 Rust format、clippy、Rust 測試與 npm 測試。release workflow 會建立跨平台 binary archive 與 checksum。npm publish workflow
|
|
450
|
+
CI 會執行 Rust format、clippy、Rust 測試與 npm 測試。release workflow 會建立跨平台 binary archive 與 checksum,發布 GitHub Release 資產成功後,再直接呼叫可重用的 npm publish workflow。npm publish workflow 也保留帶入 release tag 的手動執行入口,並使用:
|
|
440
451
|
|
|
441
452
|
```sh
|
|
442
453
|
npm publish --provenance --access public
|