Skip to content

Commit e84c3c2

Browse files
committedFeb 22, 2023
chore: update workflows config.
1 parent a38a35d commit e84c3c2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎.github/workflows/ci.marster.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: 16
15+
registry-url: 'https://registry.npmjs.org'
1516

1617
- run: npm install
1718
- run: npm run coverage
@@ -87,19 +88,18 @@ jobs:
8788
with:
8889
unset: scripts,jest,eslintConfig,engines,browserslist,devDependencies
8990

90-
- name: 📦 @uiw/react-markdown-preview publish to NPM
91-
uses: JS-DevTools/npm-publish@v1
92-
with:
93-
token: ${{ secrets.NPM_TOKEN }}
94-
package: ./package.json
91+
- run: npm publish
92+
name: 📦 @uiw/react-markdown-preview publish to NPM
93+
continue-on-error: true
94+
env:
95+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9596

9697
outputs:
9798
successful: ${{steps.create_tag.outputs.successful }}
9899

99100
github-package:
100101
runs-on: ubuntu-latest
101102
needs: build-deploy
102-
if: needs.build-deploy.outputs.successful
103103
steps:
104104
- uses: actions/checkout@v3
105105
- uses: actions/setup-node@v3
@@ -118,5 +118,6 @@ jobs:
118118
rename: '@uiwjs/react-markdown-preview'
119119

120120
- run: npm publish
121+
continue-on-error: true
121122
env:
122123
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)
Please sign in to comment.