Skip to content

Commit c53034f

Browse files
committed
chore: update workflows config.
1 parent 82178b0 commit c53034f

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ env:
1010

1111
jobs:
1212
build-deploy:
13-
runs-on: ubuntu-18.04
13+
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
1616
- uses: actions/setup-node@v2
1717
with:
1818
node-version: 16
19+
registry-url: 'https://registry.npmjs.org'
1920

2021
- run: yarn install
2122
- run: npm run build
@@ -26,13 +27,13 @@ jobs:
2627

2728
- name: Is a tag created auto?
2829
id: create_tag
29-
uses: jaywcjlove/create-tag-action@v1.3.8
30+
uses: jaywcjlove/create-tag-action@main
3031
with:
3132
package-path: ./packages/core/package.json
3233

3334
- name: Generate Changelog
3435
id: changelog
35-
uses: jaywcjlove/changelog-generator@v1.5.7
36+
uses: jaywcjlove/changelog-generator@main
3637
if: steps.create_tag.outputs.successful
3738
with:
3839
head-ref: ${{ steps.create_tag.outputs.version }}
@@ -41,7 +42,7 @@ jobs:
4142

4243

4344
- name: Create Release
44-
uses: jaywcjlove/create-tag-action@v1.3.8
45+
uses: jaywcjlove/create-tag-action@main
4546
with:
4647
package-path: ./packages/core/package.json
4748
release: true
@@ -53,17 +54,20 @@ jobs:
5354
${{ steps.changelog.outputs.changelog }}
5455
5556
- run: git status
56-
- name: 📦 @uiw/react-native publish to NPM
57-
uses: JS-DevTools/npm-publish@v1
58-
with:
59-
token: ${{ secrets.NPM_TOKEN }}
60-
package: ./packages/core/package.json
6157

62-
- name: 📦 @uiw/react-native-doc publish to NPM
63-
uses: JS-DevTools/npm-publish@v1
64-
with:
65-
token: ${{ secrets.NPM_TOKEN }}
66-
package: ./packages/docs/package.json
58+
- name: 📦 @uiw/react-native publish to NPM
59+
run: npm publish
60+
working-directory: packages/core
61+
continue-on-error: true
62+
env:
63+
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
64+
65+
- name: 📦 @uiw/react-native-doc publish to NPM
66+
run: npm publish
67+
working-directory: packages/docs
68+
continue-on-error: true
69+
env:
70+
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
6771

6872
- name: Deploy
6973
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)