|
9 | 9 | build-deploy:
|
10 | 10 | runs-on: ubuntu-18.04
|
11 | 11 | steps:
|
12 |
| - - uses: actions/checkout@master |
13 |
| - |
| 12 | + - uses: actions/checkout@v2 |
14 | 13 | - name: Look Changelog
|
15 |
| - uses: jaywcjlove/changelog-generator@v1.3.9 |
| 14 | + uses: jaywcjlove/changelog-generator@v1.4.2 |
16 | 15 | with:
|
17 | 16 | token: ${{ secrets.GITHUB_TOKEN }}
|
18 | 17 | head-ref: ${{steps.create_tag.outputs.version}}
|
19 | 18 | filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
20 | 19 | filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
21 | 20 |
|
22 |
| - - name: Setup Node |
23 |
| - uses: actions/setup-node@v1 |
| 21 | + - uses: actions/setup-node@v2 |
24 | 22 | with:
|
25 |
| - node-version: '10.x' |
26 |
| - |
27 |
| - # - name: Cache dependencies |
28 |
| - # uses: actions/cache@v1 |
29 |
| - # with: |
30 |
| - # path: ~/.npm |
31 |
| - # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
32 |
| - # restore-keys: | |
33 |
| - # ${{ runner.os }}-node- |
| 23 | + node-version: 14 |
34 | 24 |
|
35 | 25 | - run: npm install
|
36 | 26 | - run: npm run build
|
37 | 27 |
|
38 |
| - - name: Build and Deploy |
39 |
| - |
40 |
| - env: |
41 |
| - ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} |
42 |
| - PUBLISH_BRANCH: gh-pages |
43 |
| - PUBLISH_DIR: ./build |
| 28 | + - name: Deploy |
| 29 | + uses: peaceiris/actions-gh-pages@v3 |
| 30 | + with: |
| 31 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 32 | + publish_dir: ./build |
44 | 33 |
|
45 | 34 | - name: Create Tag
|
46 | 35 | id: create_tag
|
47 |
| - uses: jaywcjlove/create-tag-action@v1.1.7 |
| 36 | + uses: jaywcjlove/create-tag-action@v1.2.0 |
48 | 37 | with:
|
49 | 38 | token: ${{ secrets.GITHUB_TOKEN }}
|
50 | 39 | package-path: ./package.json
|
51 | 40 |
|
52 | 41 | - name: Generate Changelog
|
53 | 42 | id: changelog
|
54 |
| - uses: jaywcjlove/changelog-generator@v1.3.9 |
| 43 | + uses: jaywcjlove/changelog-generator@v1.4.2 |
55 | 44 | with:
|
56 | 45 | token: ${{ secrets.GITHUB_TOKEN }}
|
57 | 46 | head-ref: ${{steps.create_tag.outputs.version}}
|
58 | 47 | filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
59 | 48 | filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
60 | 49 |
|
61 | 50 | - name: Create Release
|
62 |
| - id: create_release |
63 |
| - uses: actions/create-release@latest |
| 51 | + uses: ncipollo/release-action@v1 |
64 | 52 | if: steps.create_tag.outputs.successful
|
65 |
| - env: |
66 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
67 | 53 | with:
|
68 |
| - tag_name: ${{ steps.create_tag.outputs.version }} |
69 |
| - release_name: ${{ steps.create_tag.outputs.version }} |
| 54 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 55 | + name: ${{ steps.create_tag.outputs.version }} |
| 56 | + tag: ${{ steps.create_tag.outputs.version }} |
70 | 57 | body: |
|
| 58 | + [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://bundlephobia.com/result?p=@uiw/react-codemirror@${{steps.create_tag.outputs.versionNumber}}) |
| 59 | + |
| 60 | + ```bash |
| 61 | + npm i @uiw/react-codemirror@${{steps.create_tag.outputs.versionNumber}} |
| 62 | + ``` |
| 63 | +
|
71 | 64 | ${{ steps.changelog.outputs.compareurl }}
|
72 | 65 | ${{ steps.changelog.outputs.changelog }}
|
73 |
| - draft: false |
74 |
| - prerelease: false |
0 commit comments