From 516587602b3116fa6b951c2b2c1652d9da4850ad Mon Sep 17 00:00:00 2001 From: Oscar Hermoso Date: Fri, 21 Jul 2023 16:04:26 +0800 Subject: [PATCH] Use npm version prepatch instead of from-git --- .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 ec59a9836..34672d042 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,8 @@ jobs: packages: write steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Setup .npmrc file to publish to GitHub Packages - uses: actions/setup-node@v3 with: @@ -20,7 +22,7 @@ jobs: scope: '@kedyou' - name: Build and publish run: | - npm version --no-git-tag-version --preid=kedyou from-git + npm version from-git --no-git-tag-version --pre-id="kedyou" prepatch npm ci npm publish env: