chore: update workflows config.
This commit is contained in:
parent
cee897c225
commit
b1be58c970
|
|
@ -7,28 +7,27 @@ jobs:
|
||||||
build-deploy:
|
build-deploy:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
with:
|
||||||
node-version: '10.x'
|
node-version: 14
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: jaywcjlove/changelog-generator@v1.3.9
|
uses: jaywcjlove/changelog-generator@v1.4.1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
head-ref: ${{steps.create_tag.outputs.version}}
|
||||||
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
||||||
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
||||||
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run dash
|
- run: npm run dash
|
||||||
|
|
||||||
- name: Build and Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v2.5.0
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
env:
|
with:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PUBLISH_BRANCH: gh-pages
|
publish_dir: ./.deploy
|
||||||
PUBLISH_DIR: ./.deploy
|
|
||||||
|
|
@ -9,11 +9,12 @@ jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
# To use this repository's private action, you must check out the repository
|
- uses: actions/checkout@v2
|
||||||
- name: Checkout
|
- uses: actions/setup-node@v2
|
||||||
uses: actions/checkout@v2
|
with:
|
||||||
|
node-version: 14
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: jaywcjlove/changelog-generator@v1.3.9
|
uses: jaywcjlove/changelog-generator@v1.3.9
|
||||||
with:
|
with:
|
||||||
|
|
@ -22,15 +23,31 @@ jobs:
|
||||||
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
uses: ncipollo/release-action@v1
|
||||||
uses: actions/create-release@latest
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release_name: ${{ github.ref }}
|
name: ${{ steps.changelog.outputs.tag }}
|
||||||
|
tag: ${{ steps.changelog.outputs.tag }}
|
||||||
body: |
|
body: |
|
||||||
|
[](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}})
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i linux-command@${{steps.changelog.outputs.version}}
|
||||||
|
```
|
||||||
|
|
||||||
${{ steps.changelog.outputs.compareurl }}
|
${{ steps.changelog.outputs.compareurl }}
|
||||||
${{ steps.changelog.outputs.changelog }}
|
${{ steps.changelog.outputs.changelog }}
|
||||||
draft: false
|
|
||||||
prerelease: false
|
- run: npm install
|
||||||
|
- run: npm run build
|
||||||
|
|
||||||
|
- run: npm install @jsdevtools/npm-publish -g
|
||||||
|
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
|
||||||
|
|
||||||
|
- run: npm run dash
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./.deploy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue