Skip to content

Commit 1bbca0d

Browse files
committed
ci: update workflows config.
1 parent b46a30a commit 1bbca0d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ jobs:
88
windows:
99
runs-on: windows-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 16
14+
node-version: 20
15+
registry-url: 'https://registry.npmjs.org'
1516

1617
- name: Look Changelog
1718
uses: jaywcjlove/changelog-generator@main
@@ -28,10 +29,10 @@ jobs:
2829
build:
2930
runs-on: ubuntu-latest
3031
steps:
31-
- uses: actions/checkout@v3
32-
- uses: actions/setup-node@v3
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-node@v4
3334
with:
34-
node-version: 16
35+
node-version: 20
3536
registry-url: 'https://registry.npmjs.org'
3637

3738
- name: Look Changelog
@@ -75,7 +76,7 @@ jobs:
7576
uses: jaywcjlove/changelog-generator@main
7677

7778
- name: Deploy
78-
uses: peaceiris/actions-gh-pages@v3
79+
uses: peaceiris/actions-gh-pages@v4
7980
with:
8081
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
8182
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -94,9 +95,10 @@ jobs:
9495
uses: ncipollo/release-action@v1
9596
if: steps.create_tag.outputs.successful
9697
with:
98+
allowUpdates: true
9799
token: ${{ secrets.GITHUB_TOKEN }}
98-
name: ${{ steps.changelog.outputs.tag }}
99-
tag: ${{ steps.changelog.outputs.tag }}
100+
name: ${{ steps.create_tag.outputs.version }}
101+
tag: ${{ steps.create_tag.outputs.version }}
100102
body: |
101103
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codemirror/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
102104
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
@@ -105,7 +107,7 @@ jobs:
105107
106108
- run: npm publish --access public
107109
name: 📦 @uiw/react-layout publish to NPM
108-
working-directory: ./core/
110+
working-directory: core
109111
continue-on-error: true
110112
env:
111113
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)