Skip to content

Commit 1b10a8f

Browse files
committed
Test Publish Release CI
1 parent b8cf47f commit 1b10a8f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/publish-to-npm.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v2
1313
with:
1414
node-version: 18
@@ -23,10 +23,12 @@ jobs:
2323
- name: Prepack
2424
run: npm run prepack
2525
- name: Configuring Git
26-
run: git config --global user.name "GitHub CD bot" && git config --global user.email "github-cd-bot@example.com"
26+
run: git config --global user.name "GitHub CD bot" && git config --global user.email "github-cd-bot@users.noreply.github.com"
2727
- name: Update package version
28-
run: npm version ${{ github.event.release.tag_name }}
29-
- name: Publish package to NPM
30-
run: npm publish
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
run: npm --no-git-tag-version version ${{ github.event.release.tag_name }}
29+
# - name: Publish package to NPM
30+
# run: npm publish
31+
# env:
32+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
- name: Push changes to GitHub
34+
run: git commit -am "Release ${{ github.event.release.tag_name }}" && git push

0 commit comments

Comments
 (0)