99 test :
1010 runs-on : ubuntu-18.04
1111 steps :
12- # To use this repository's private action, you must check out the repository
13- - name : Checkout
14- uses : actions/checkout@v2
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v2
14+ with :
15+ node-version : 14
1516
16- - name : Generate changelog
17+ - name : Generate Changelog
1718 id : changelog
1819 uses : jaywcjlove/changelog-generator@v1.3.9
1920 with :
@@ -22,15 +23,31 @@ jobs:
2223 filter : (^[\s]+?[R|r]elease)|(^[R|r]elease)
2324
2425 - name : Create Release
25- id : create_release
26- uses : actions/create-release@latest
27- env :
28- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ uses : ncipollo/release-action@v1
2927 with :
30- tag_name : ${{ github.ref }}
31- release_name : ${{ github.ref }}
28+ token : ${{ secrets.GITHUB_TOKEN }}
29+ name : ${{ steps.changelog.outputs.tag }}
30+ tag : ${{ steps.changelog.outputs.tag }}
3231 body : |
32+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/linux-command@${{steps.changelog.outputs.versionNumber}}/file/README.md) [](https://bundlephobia.com/result?p=linux-command@${{steps.changelog.outputs.versionNumber}})
33+
34+ ```bash
35+ npm i linux-command@${{steps.changelog.outputs.version}}
36+ ```
37+
3338 ${{ steps.changelog.outputs.compareurl }}
3439 ${{ steps.changelog.outputs.changelog }}
35- draft : false
36- prerelease : false
40+
41+ - run : npm install
42+ - run : npm run build
43+
44+ - run : npm install @jsdevtools/npm-publish -g
45+ - run : npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
46+
47+ - run : npm run dash
48+
49+ - name : Deploy
50+ uses : peaceiris/actions-gh-pages@v3
51+ with :
52+ github_token : ${{ secrets.GITHUB_TOKEN }}
53+ publish_dir : ./.deploy
0 commit comments