From 9f6c8a23ae9a0e53dbbe9fc3ad3278eac117a451 Mon Sep 17 00:00:00 2001 From: ienaga Date: Sat, 1 Nov 2025 11:42:34 +0900 Subject: [PATCH 1/2] #44 update publish.yml --- .github/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35b4eba..896c54e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,4 +19,6 @@ jobs: registry-url: "https://registry.npmjs.org" - run: npm install - run: npm run release - - run: npm publish --access public \ No newline at end of file + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} \ No newline at end of file From 32f7b69f3fda9c8876904f78f92050ed5e5ac396 Mon Sep 17 00:00:00 2001 From: ienaga Date: Sat, 1 Nov 2025 11:47:03 +0900 Subject: [PATCH 2/2] #44 update publish.yml --- .github/workflows/publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 896c54e..b893445 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,12 +5,13 @@ on: branches: - main +permissions: + id-token: write + contents: read + jobs: build: runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 @@ -19,6 +20,4 @@ jobs: registry-url: "https://registry.npmjs.org" - run: npm install - run: npm run release - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} \ No newline at end of file + - run: npm publish \ No newline at end of file