Skip to content

Commit 326e7d9

Browse files
committed
chore(release): 1.0.1
1 parent 8ddf48e commit 326e7d9

File tree

6 files changed

+51
-9
lines changed

6 files changed

+51
-9
lines changed

.github/workflows/build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: build for commit
22

33
on:
4-
- push
4+
push:
5+
tags-ignore:
6+
- 'v*'
57

68
jobs:
79
build:
810
runs-on: ubuntu-latest
911

1012
steps:
1113
- name: Checkout
14+
# https://github.com/actions/checkout
1215
uses: actions/checkout@v2
1316

1417
- name: Setup node
18+
# https://github.com/actions/setup-node
1519
uses: actions/setup-node@v1
1620
with:
1721
node-version: 13.x

.github/workflows/release.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14+
# https://github.com/actions/checkout
1415
uses: actions/checkout@v2
16+
with:
17+
# Number of commits to fetch. 0 indicates all history.
18+
# all history for changelog
19+
fetch-depth: 0
1520

1621
- name: Setup node
22+
# https://github.com/actions/setup-node
1723
uses: actions/setup-node@v1
1824
with:
1925
node-version: 13.x
@@ -24,17 +30,27 @@ jobs:
2430
2531
- name: Build
2632
id: build
33+
# outputs:
34+
# bundle-file:
35+
# description: zip file name
36+
# bundle-path:
37+
# description: relative zip file path
2738
run: |
2839
npm run build
2940
3041
- name: Changelog
3142
id: changelog
32-
uses: scottbrenner/generate-changelog-action@master
33-
env:
34-
REPO: ${{ github.repository }}
43+
# outputs:
44+
# changelog:
45+
# description: last tag changelog
46+
run: |
47+
git tag -d $(basename ${{ github.ref }})
48+
npx standard-version --dry-run --skip.bump=true --silent > change.log
49+
npm run gulp output-changelog
3550
3651
- name: Create Release
3752
id: create-release
53+
# https://github.com/actions/create-release
3854
uses: actions/create-release@v1
3955
env:
4056
# This token is provided by Actions, you do not need to create your own token
@@ -49,6 +65,7 @@ jobs:
4965

5066
- name: Upload Release Asset
5167
id: upload-release-asset
68+
# https://github.com/actions/upload-release-asset
5269
uses: actions/upload-release-asset@v1
5370
env:
5471
# This token is provided by Actions, you do not need to create your own token

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
### [1.0.1](https://github.com/zthxxx/kugimiya-rainbow-fart/compare/v1.0.0...v1.0.1) (2020-06-29)
4+
5+
6+
### docs
7+
8+
* update docs and typo keywords ([5ff4187](https://github.com/zthxxx/kugimiya-rainbow-fart/commit/5ff41873d6463106fbc8112b75075ecae3373987(type:docs)))
9+
10+
11+
### ci
12+
13+
* add release action ([8ddf48e](https://github.com/zthxxx/kugimiya-rainbow-fart/commit/8ddf48ed6009b7d9f7dc8ced828c5fc4d6335290(type:ci)))
14+
* init github action for build ([098ef33](https://github.com/zthxxx/kugimiya-rainbow-fart/commit/098ef3388266600c22117b28411ab80ad7b6cfa1(type:ci)))
15+
316
## [1.0.0](https://github.com/zthxxx/kugimiya-rainbow-fart/compare/v0.0.1...v1.0.0) (2020-06-25)
417

518
- update all of voices

gulpfile.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ const { version } = pkg
1212
const { name } = rawManifest
1313

1414

15-
gulp.task('clean', (done) => {
16-
rimraf.sync(`{dist,build}`)
17-
return done()
15+
gulp.task('clean', async () => {
16+
rimraf.sync(`{dist,build,*.log}`)
1817
})
1918

2019

@@ -61,6 +60,15 @@ gulp.task('bundle', async () => {
6160
setOutput('bundle-path', `./dist/${bundleName}`)
6261
})
6362

63+
64+
gulp.task('output-changelog', async () => {
65+
const changelog = fs.readFileSync('change.log', 'utf8')
66+
.replace(/^---$/mg, '')
67+
.trim()
68+
69+
setOutput('changelog', changelog)
70+
})
71+
6472
gulp.task('default', gulp.series(
6573
'clean',
6674
'copy-assets',

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kugimiya-rainbow-fart",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Kugimiya voice for vscode-rainbow-fart",
55
"main": "manifest.json",
66
"scripts": {

0 commit comments

Comments
 (0)