Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 11, 2021
1 parent a06e41c commit f3534db
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:

- run: npm install
- run: npm run build
- run: npm run type-check
- run: npm install [email protected] typescript -g
- run: typedoc src/server.ts --name sgo

Expand All @@ -22,3 +23,41 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./packages/tsbb/package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/[email protected]
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{ steps.create_tag.outputs.version }}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/sgo@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
```bash
npm i sgo@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sgo",
"version": "2.4.3",
"version": "3.0.0",
"description": "Setting a directory to a static server.",
"bin": {
"sgo": "lib/sgo.js"
Expand All @@ -10,6 +10,7 @@
"prepare": "npm run build",
"build": "tsbb build --no-esm --disable-babel --entry src/sgo.ts",
"watch": "tsbb watch --no-esm --disable-babel --entry src/sgo.ts",
"type-check": "tsc --noEmit",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
},
Expand Down

0 comments on commit f3534db

Please sign in to comment.