|
10 | 10 | jobs: |
11 | 11 | build-deploy: |
12 | 12 | runs-on: ubuntu-latest |
| 13 | + permissions: |
| 14 | + contents: write |
| 15 | + id-token: write |
13 | 16 | steps: |
14 | 17 | - uses: actions/checkout@v4 |
15 | 18 | - uses: actions/setup-node@v4 |
|
33 | 36 | output: build/CONTRIBUTORS.svg |
34 | 37 | avatarSize: 42 |
35 | 38 |
|
36 | | - # - run: npm install @jsdevtools/npm-publish -g |
37 | | - # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json |
38 | | - |
39 | | - - run: npm publish --access public --provenance |
40 | | - name: 📦 @uiw/react-code-preview publish to NPM |
41 | | - continue-on-error: true |
42 | | - env: |
43 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
44 | | - |
45 | | - # - name: 📦 📦 @uiw/react-code-preview 📦 📦 |
46 | | - # uses: JS-DevTools/npm-publish@v1 |
47 | | - # with: |
48 | | - # token: ${{ secrets.NPM_TOKEN }} |
49 | | - # package: package.json |
50 | | - |
51 | 39 | - name: Create Tag |
52 | 40 | id: create_tag |
53 | 41 | uses: jaywcjlove/create-tag-action@main |
|
94 | 82 | ``` |
95 | 83 |
|
96 | 84 | ${{ steps.changelog.outputs.changelog }} |
| 85 | + - name: package.json info |
| 86 | + uses: jaywcjlove/github-action-package@main |
| 87 | + with: |
| 88 | + unset: scripts,lint-staged,eslintConfig,browserslist |
| 89 | + # - run: npm install @jsdevtools/npm-publish -g |
| 90 | + # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json |
| 91 | + |
| 92 | + - run: npm publish --access public --provenance |
| 93 | + name: 📦 @uiw/react-code-preview publish to NPM |
| 94 | + continue-on-error: true |
| 95 | + env: |
| 96 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |
| 97 | + |
| 98 | + # - name: 📦 📦 @uiw/react-code-preview 📦 📦 |
| 99 | + # uses: JS-DevTools/npm-publish@v1 |
| 100 | + # with: |
| 101 | + # token: ${{ secrets.NPM_PUBLISH_TOKEN }} |
| 102 | + # package: package.json |
0 commit comments