|
11 | 11 | - uses: actions/setup-node@v3 |
12 | 12 | with: |
13 | 13 | node-version: 16 |
| 14 | + registry-url: 'https://registry.npmjs.org' |
14 | 15 |
|
15 | 16 | - run: npm install |
16 | 17 | - run: npm run build |
@@ -67,17 +68,27 @@ jobs: |
67 | 68 |
|
68 | 69 | ${{ steps.changelog.outputs.changelog }} |
69 | 70 |
|
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 |
72 | 78 | 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 }} |
75 | 86 |
|
76 | 87 | outputs: |
77 | 88 | successful: ${{steps.create_tag.outputs.successful }} |
78 | 89 |
|
79 | 90 | github-package: |
80 | | - runs-on: ubuntu-20.04 |
| 91 | + runs-on: ubuntu-latest |
81 | 92 | needs: build-deploy |
82 | 93 | if: needs.build-deploy.outputs.successful |
83 | 94 | steps: |
|
98 | 109 | rename: '@uiwjs/react-markdown-editor' |
99 | 110 |
|
100 | 111 | - run: npm publish |
| 112 | + continue-on-error: true |
101 | 113 | 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