Skip to content

Commit 64e874d

Browse files
committed
chore: update workflows config.
1 parent bc69d26 commit 64e874d

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- uses: actions/setup-node@v3
1212
with:
1313
node-version: 16
14+
registry-url: 'https://registry.npmjs.org'
1415

1516
- run: npm install
1617
- run: npm run build
@@ -67,17 +68,27 @@ jobs:
6768
6869
${{ steps.changelog.outputs.changelog }}
6970
70-
- name: 📦 @uiw/react-markdown-editor 📦
71-
uses: JS-DevTools/npm-publish@v1
71+
# - name: 📦 @uiw/react-markdown-editor 📦
72+
# uses: JS-DevTools/npm-publish@v1
73+
# with:
74+
# token: ${{ secrets.NPM_TOKEN }}
75+
# package: ./package.json
76+
- name: Modify package.json
77+
uses: jaywcjlove/github-action-package@main
7278
with:
73-
token: ${{ secrets.NPM_TOKEN }}
74-
package: ./package.json
79+
unset: scripts,eslintConfig,devDependencies,browserslist
80+
81+
- name: 📦 @uiw/react-markdown-editor 📦
82+
run: npm publish
83+
continue-on-error: true
84+
env:
85+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7586

7687
outputs:
7788
successful: ${{steps.create_tag.outputs.successful }}
7889

7990
github-package:
80-
runs-on: ubuntu-20.04
91+
runs-on: ubuntu-latest
8192
needs: build-deploy
8293
if: needs.build-deploy.outputs.successful
8394
steps:
@@ -98,5 +109,9 @@ jobs:
98109
rename: '@uiwjs/react-markdown-editor'
99110

100111
- run: npm publish
112+
continue-on-error: true
101113
env:
102-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
114+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
# - run: npm publish
116+
# env:
117+
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)