Skip to content

Commit 58e3208

Browse files
committed
💚 Fix Github Actions
1 parent 148020f commit 58e3208

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ jobs:
1010
build-and-publish:
1111
runs-on: ubuntu-latest
1212
steps:
13-
# リポジトリをチェックアウト
13+
# リポジトリをチェックアウト(フル履歴を取得)
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
1618

1719
# Node.js 22 をセットアップ
1820
- name: Setup Node.js
1921
uses: actions/setup-node@v3
2022
with:
2123
node-version: 22
2224
registry-url: https://registry.npmjs.org
25+
26+
# pnpm をグローバルインストール
2327
- name: Install pnpm
2428
run: npm install -g [email protected]
2529

@@ -37,8 +41,8 @@ jobs:
3741
- name: Build
3842
run: pnpm build
3943

40-
# npm に公開
44+
# npm に公開(Git チェックをスキップ)
4145
- name: Publish to npm
42-
run: pnpm publish --access public
46+
run: pnpm publish --access public --no-git-checks
4347
env:
4448
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)