55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
name: Create Release
|
|
on:
|
|
push:
|
|
# Sequence of patterns matched against refs/tags
|
|
tags:
|
|
- 'v*' # Push events to matching v*, i.e. v1.0, v0.4.4
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 14
|
|
|
|
- name: Generate Changelog
|
|
id: changelog
|
|
uses: jaywcjlove/changelog-generator@v1.4.3
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
|
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
|
|
|
|
|
- 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
|
|
|
|
- name: Create Release
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
name: ${{ steps.changelog.outputs.tag }}
|
|
tag: ${{ steps.changelog.outputs.tag }}
|
|
body: |
|
|
[](https://uiwjs.github.io/npm-unpkg/#/pkg/linux-command@${{steps.changelog.outputs.version}}/file/README.md) [](https://bundlephobia.com/result?p=linux-command@${{steps.changelog.outputs.version}})
|
|
|
|
```bash
|
|
npm i linux-command@${{steps.changelog.outputs.version}}
|
|
```
|
|
|
|
${{ steps.changelog.outputs.compareurl }}
|
|
|
|
${{ steps.changelog.outputs.changelog }} |