Skip to content

Commit 6db8139

Browse files
committed
ci: update workflows config.
1 parent 4f6fc93 commit 6db8139

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

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

1616
- run: npm install
@@ -35,7 +35,7 @@ jobs:
3535
uses: jaywcjlove/changelog-generator@main
3636

3737
- name: Deploy
38-
uses: peaceiris/actions-gh-pages@v3
38+
uses: peaceiris/actions-gh-pages@v4
3939
with:
4040
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
4141
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -53,6 +53,7 @@ jobs:
5353
uses: ncipollo/release-action@v1
5454
if: steps.create_tag.outputs.successful
5555
with:
56+
allowUpdates: true
5657
token: ${{ secrets.GITHUB_TOKEN }}
5758
name: ${{ steps.create_tag.outputs.version }}
5859
tag: ${{ steps.create_tag.outputs.version }}
@@ -69,10 +70,9 @@ jobs:
6970
${{ steps.changelog.outputs.changelog }}
7071
7172
72-
- run: npm publish --access public
73+
- run: NODE_AUTH_TOKEN="" npm publish --access public --provenance
74+
name: 📦 @uiw/react-codepen publish to NPM
7375
continue-on-error: true
74-
env:
75-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7676

7777
# - uses: JS-DevTools/npm-publish@v1
7878
# with:

0 commit comments

Comments
 (0)