From c04c0f9cf5ceaba20fbdfeab0c6320451ec4493b Mon Sep 17 00:00:00 2001 From: Ryuichi Okumura Date: Tue, 2 Dec 2025 22:39:28 +0900 Subject: [PATCH 1/2] ci: setup trusted publishing workflow --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9dfc9b2 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + - run: npm ci + - run: npm test + - run: npm publish From 05f1a527a93d074ee2353a65fc6fe4bd5a6aa22f Mon Sep 17 00:00:00 2001 From: Ryuichi Okumura Date: Tue, 2 Dec 2025 22:41:28 +0900 Subject: [PATCH 2/2] fix: . --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9dfc9b2..6a2ae3d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Use Node.js uses: actions/setup-node@v6 with: