|
|
@ -13,12 +13,10 @@ 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: Cache dependencies
|
|
|
|
# - name: Cache dependencies
|
|
|
|
# uses: actions/cache@v1
|
|
|
|
# uses: actions/cache@v1
|
|
|
@ -29,11 +27,11 @@ jobs:
|
|
|
|
# ${{ runner.os }}-node-
|
|
|
|
# ${{ runner.os }}-node-
|
|
|
|
|
|
|
|
|
|
|
|
- name: Look Changelog
|
|
|
|
- name: Look Changelog
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.3.9
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.4.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
|
|
|
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
|
|
|
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
|
|
|
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
|
|
|
|
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run build
|
|
|
@ -51,32 +49,32 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Is a tag created auto?
|
|
|
|
- name: Is a tag created auto?
|
|
|
|
id: create_tag
|
|
|
|
id: create_tag
|
|
|
|
uses: jaywcjlove/create-tag-action@v1.1.7
|
|
|
|
uses: jaywcjlove/create-tag-action@v1.1.10
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
package-path: ./package.json
|
|
|
|
package-path: ./package.json
|
|
|
|
|
|
|
|
|
|
|
|
- name: Generate Changelog
|
|
|
|
- name: Generate Changelog
|
|
|
|
id: changelog
|
|
|
|
id: changelog
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.3.9
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.4.0
|
|
|
|
if: steps.create_tag.outputs.successful
|
|
|
|
if: steps.create_tag.outputs.successful
|
|
|
|
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: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
|
|
|
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
|
|
|
|
|
|
|
|
if: steps.create_tag.outputs.successful
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
tag_name: ${{ steps.create_tag.outputs.version }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
release_name: ${{ steps.create_tag.outputs.version }}
|
|
|
|
name: ${{ steps.changelog.outputs.tag }}
|
|
|
|
|
|
|
|
tag: ${{ steps.changelog.outputs.tag }}
|
|
|
|
body: |
|
|
|
|
body: |
|
|
|
|
|
|
|
|
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/hotkeys-js@${{steps.changelog.outputs.version}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/hotkeys-js)](https://bundlephobia.com/result?p=hotkeys-js@${{steps.changelog.outputs.version}}) [![npm version](https://img.shields.io/npm/v/hotkeys-js.svg)](https://www.npmjs.com/package/hotkeys-js)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
npm i hotkeys-js@${{steps.changelog.outputs.version}}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
${{ steps.changelog.outputs.compareurl }}
|
|
|
|
${{ steps.changelog.outputs.compareurl }}
|
|
|
|
${{ steps.changelog.outputs.changelog }}
|
|
|
|
${{ steps.changelog.outputs.changelog }}
|
|
|
|
draft: false
|
|
|
|
|
|
|
|
prerelease: false
|
|
|
|
|