Skip to content

Commit a73b8d7

Browse files
committed
ci: update workflows config.
1 parent 8c05715 commit a73b8d7

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
build-deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
1313
with:
14-
node-version: 16
14+
node-version: 24
1515
registry-url: 'https://registry.npmjs.org'
1616

1717
- run: npm install
@@ -36,7 +36,7 @@ jobs:
3636
uses: jaywcjlove/changelog-generator@main
3737

3838
- name: Deploy
39-
uses: peaceiris/actions-gh-pages@v3
39+
uses: peaceiris/actions-gh-pages@v4
4040
with:
4141
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -54,6 +54,7 @@ jobs:
5454
uses: ncipollo/release-action@v1
5555
if: steps.create_tag.outputs.successful
5656
with:
57+
allowUpdates: true
5758
token: ${{ secrets.GITHUB_TOKEN }}
5859
name: ${{ steps.create_tag.outputs.version }}
5960
tag: ${{ steps.create_tag.outputs.version }}
@@ -70,11 +71,9 @@ jobs:
7071
${{ steps.changelog.outputs.changelog }}
7172
7273
- name: 📦 @uiw/react-prismjs publish to NPM
73-
run: npm publish
74+
run: NODE_AUTH_TOKEN="" npm publish --access public --provenance
7475
continue-on-error: true
7576
working-directory: core
76-
env:
77-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7877

7978
# outputs:
8079
# successful: ${{steps.create_tag.outputs.successful }}

0 commit comments

Comments
 (0)