Skip to content

Commit ee5491d

Browse files
fix(gh): trusted publishingに移行 (#55)
1 parent 9595734 commit ee5491d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- name: Install pnpm
1616
uses: pnpm/action-setup@v2
1717
with:
18-
version: 8
1918
run_install: false
2019
- name: Use Node.js ${{ matrix.node-version }}
2120
uses: actions/setup-node@v4

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@ jobs:
2323
- name: Install pnpm
2424
uses: pnpm/action-setup@v2
2525
with:
26-
version: 8
2726
run_install: false
2827
- name: Use Node.js ${{ matrix.node-version }}
2928
uses: actions/setup-node@v4
3029
with:
3130
node-version: ${{ matrix.node-version }}
3231
cache: 'pnpm'
3332
registry-url: 'https://registry.npmjs.org'
33+
34+
# Ensure npm 11.5.1 or later is installed
35+
- name: Update npm
36+
run: npm install -g npm@latest
37+
3438
- name: Publish package
3539
run: |
3640
corepack enable
3741
pnpm i --frozen-lockfile
3842
pnpm build
3943
pnpm publish --access public --no-git-checks --provenance
40-
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
42-
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- name: Install pnpm
1616
uses: pnpm/action-setup@v2
1717
with:
18-
version: 8
1918
run_install: false
2019
- name: Use Node.js ${{ matrix.node-version }}
2120
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)