Skip to content

Commit 7ef159e

Browse files
committed
chore: update workflows config.
1 parent 8ff72d7 commit 7ef159e

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66

77
jobs:
88
build-deploy:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 14
14+
node-version: 16
15+
registry-url: 'https://registry.npmjs.org'
1516

1617
- run: npm install
1718
- run: npm run build
@@ -20,13 +21,13 @@ jobs:
2021

2122
- name: Create Tag
2223
id: create_tag
23-
uses: jaywcjlove/create-tag-action@v1.3.5
24+
uses: jaywcjlove/create-tag-action@main
2425
with:
2526
package-path: ./package.json
2627

2728
- name: Generate Changelog
2829
id: changelog
29-
uses: jaywcjlove/changelog-generator@v1.4.8
30+
uses: jaywcjlove/changelog-generator@main
3031
with:
3132
token: ${{ secrets.GITHUB_TOKEN }}
3233
head-ref: ${{steps.create_tag.outputs.version}}
@@ -60,5 +61,10 @@ jobs:
6061
with:
6162
github-token: ${{ secrets.GITHUB_TOKEN }}
6263

63-
- run: npm install @jsdevtools/npm-publish -g
64-
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
64+
- run: npm publish --access public
65+
name: 📦 @uiw/react-only-when publish to NPM
66+
continue-on-error: true
67+
env:
68+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
# - run: npm install @jsdevtools/npm-publish -g
70+
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

0 commit comments

Comments
 (0)