haori 0.44.0 → 0.45.1

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/README.ja.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Haori.js は、HTML 属性を中心にして動的な UI を実現する軽量なライブラリです。JavaScript をほとんど書かずに、データバインディング、条件分岐、繰り返し処理、フォームの双方向バインディング、サーバー通信などを HTML 属性で宣言できます。
4
4
 
5
- バージョン: 0.44.0
5
+ バージョン: 0.45.1
6
6
 
7
7
  ---
8
8
 
@@ -172,7 +172,7 @@ JS からバインドデータを読むには `Haori.Core.getBindingData(element
172
172
  4. 新しい版数タグから GitHub Release を公開する
173
173
  5. npm、jsDelivr、GitHub Release の assets が新しい版数を指すことを確認する
174
174
 
175
- GitHub Release 起点で npm publish する workflow では、`NPM_TOKEN` `haori` パッケージの owner として publish 権限を持つユーザーのトークンを設定してください。認証自体は通っても `haori` への publish 権限がない場合、`npm publish` で原因が分かりにくい `E404` になることがあります。
175
+ GitHub Release 起点で npm publish する workflow は、npm Trusted Publishing(OIDC)で認証します。長期トークンは使いません。npm のパッケージ設定で、この repository `publish-on-release.yml` からの公開を Trusted Publisher として登録しておいてください。登録が無いと `npm publish` が認証エラーで失敗します。
176
176
 
177
177
  6. 依存インストール
178
178
 
@@ -208,11 +208,12 @@ git push origin --tags
208
208
 
209
209
  6. 新しいタグから GitHub Release を公開
210
210
 
211
- このリポジトリの npm 公開は GitHub Actions で行います。現在の workflow は `release.published` を契機に起動し、パッケージをビルドしたうえで、対象 version が未公開のときだけ `NPM_TOKEN` を使って npm へ公開し、あわせて `dist.zip` を GitHub Release のアセットとして添付します。
211
+ このリポジトリの npm 公開は GitHub Actions で行います。現在の workflow は `release.published` を契機に起動し、パッケージをビルドしたうえで、対象 version が未公開のときだけ npm へ公開し、あわせて `dist.zip` を GitHub Release のアセットとして添付します。認証は npm の Trusted Publishing(OIDC)で行い、出自証明(provenance)が自動で付きます。
212
212
 
213
213
  必要な前提条件:
214
214
 
215
- - GitHub Actions repository secrets `NPM_TOKEN` が設定されていること
215
+ - npm のパッケージ設定で、この repository `publish-on-release.yml` が Trusted Publisher として登録されていること
216
+ - 公開ジョブに `id-token: write` の権限があること(OIDC トークンの発行に必要)
216
217
  - 対象バージョンのタグから Release を `published` 状態で公開すること
217
218
 
218
219
  公開前の推奨確認:
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Haori.js is a lightweight, HTML-first UI library that enables dynamic user interfaces primarily through HTML attributes. It lets you declare data bindings, conditional rendering, list rendering, form two-way binding, server fetches, and HTML imports without writing much JavaScript.
4
4
 
5
- Version: 0.44.0
5
+ Version: 0.45.1
6
6
 
7
7
  ---
8
8
 
@@ -174,7 +174,7 @@ Quick release memo:
174
174
  4. Publish a GitHub Release from the new version tag.
175
175
  5. Confirm npm, jsDelivr, and the GitHub Release assets reflect the new version.
176
176
 
177
- For the GitHub Release-driven npm publish workflow, configure `NPM_TOKEN` for a user that is an owner of the `haori` package. If the token authenticates successfully but does not have publish rights for `haori`, npm may fail with a misleading `E404` during `npm publish`.
177
+ The GitHub Release-driven npm publish workflow authenticates with npm trusted publishing (OIDC), so no long-lived token is used. Register this repository and `publish-on-release.yml` as a trusted publisher in the npm package settings; without that registration, `npm publish` fails with an authentication error.
178
178
 
179
179
  6. Install dependencies
180
180
 
@@ -210,11 +210,12 @@ git push origin --tags
210
210
 
211
211
  6. Publish a GitHub Release from the new tag
212
212
 
213
- Publishing to npm is handled by GitHub Actions when a GitHub Release is published. This repository uses release workflows that trigger on `release.published`, build the package, publish it to npm with `NPM_TOKEN` if that package version is not already published, and upload `dist.zip` to the release assets.
213
+ Publishing to npm is handled by GitHub Actions when a GitHub Release is published. This repository uses release workflows that trigger on `release.published`, build the package, publish it to npm if that package version is not already published, and upload `dist.zip` to the release assets. Authentication uses npm trusted publishing (OIDC), which also attaches provenance automatically.
214
214
 
215
215
  Required repository setup:
216
216
 
217
- - `NPM_TOKEN` must be configured in GitHub Actions repository secrets.
217
+ - This repository and `publish-on-release.yml` must be registered as a trusted publisher in the npm package settings.
218
+ - The publish job must have the `id-token: write` permission so it can request an OIDC token.
218
219
  - The release must be published from the target version tag.
219
220
 
220
221
  Recommended pre-release checks: