Skip to content

Commit df272ba

Browse files
committed
chore: update workflows config.
1 parent 265f67a commit df272ba

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build-deploy:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 14
15+
16+
- run: npm install
17+
- run: npm run build
18+
- run: npm run doc
19+
20+
- name: Generate Contributors Images
21+
uses: jaywcjlove/github-action-contributors@main
22+
with:
23+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
24+
output: build/CONTRIBUTORS.svg
25+
avatarSize: 42
26+
27+
- name: Create Tag
28+
id: create_tag
29+
uses: jaywcjlove/create-tag-action@v1.3.6
30+
with:
31+
package-path: ./package.json
32+
33+
- name: get tag version
34+
id: tag_version
35+
uses: jaywcjlove/changelog-generator@v1.5.0
36+
37+
- name: Deploy
38+
uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: ./build
43+
44+
- name: Generate Changelog
45+
id: changelog
46+
uses: jaywcjlove/changelog-generator@v1.5.0
47+
with:
48+
head-ref: ${{steps.create_tag.outputs.version}}
49+
filter-author: (renovate-bot|Renovate Bot)
50+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
51+
52+
- name: Create Release
53+
uses: ncipollo/release-action@v1
54+
if: steps.create_tag.outputs.successful
55+
with:
56+
token: ${{ secrets.GITHUB_TOKEN }}
57+
name: ${{ steps.create_tag.outputs.version }}
58+
tag: ${{ steps.create_tag.outputs.version }}
59+
body: |
60+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@wcjiang/notify@${{steps.changelog.outputs.version}}/file/README.md)
61+
62+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/iNotify/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
63+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
64+
65+
```shell
66+
npm i @wcjiang/notify@${{steps.create_tag.outputs.versionNumber}}
67+
```
68+
69+
${{ steps.changelog.outputs.changelog }}
70+
71+
- uses: JS-DevTools/npm-publish@v1
72+
with:
73+
token: ${{ secrets.NPM_TOKEN }}
74+
package: ./package.json
75+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy