Skip to content

Commit 23cdf00

Browse files
committed
ci: update workflows config.
1 parent f708950 commit 23cdf00

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
contents: write
1212
id-token: write
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-node@v6
1616
with:
17-
node-version: 18
17+
node-version: 24
1818
registry-url: 'https://registry.npmjs.org'
1919

2020
- run: npm install
@@ -41,7 +41,7 @@ jobs:
4141
uses: jaywcjlove/changelog-generator@main
4242

4343
- name: Deploy
44-
uses: peaceiris/actions-gh-pages@v3
44+
uses: peaceiris/actions-gh-pages@v4
4545
with:
4646
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
4747
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -58,6 +58,7 @@ jobs:
5858
uses: ncipollo/release-action@v1
5959
if: steps.create_tag.outputs.successful
6060
with:
61+
allowUpdates: true
6162
token: ${{ secrets.GITHUB_TOKEN }}
6263
name: ${{ steps.create_tag.outputs.version }}
6364
tag: ${{ steps.create_tag.outputs.version }}
@@ -74,9 +75,7 @@ jobs:
7475
7576
${{ steps.changelog.outputs.changelog }}
7677
77-
- run: npm publish --access public --provenance
78+
- run: NODE_AUTH_TOKEN="" npm publish --access public --provenance
7879
name: 📦 @uiw/react-markdown-preview-example publish to NPM
7980
continue-on-error: true
80-
working-directory: core
81-
env:
82-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
working-directory: core

0 commit comments

Comments
 (0)