Skip to content

Commit 628f2d8

Browse files
committed
ci: use github actions to make releases
1 parent 68cb078 commit 628f2d8

File tree

3 files changed

+22
-130
lines changed

3 files changed

+22
-130
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
release:
9+
name: release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: "12.x"
16+
- run: yarn install --pure-lockfile
17+
- run: yarn build
18+
- run: npx semantic-release
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 0 additions & 122 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@
3737
"lint:fix": "yarn run lint -- --fix",
3838
"pretest:cov": "yarn run lint",
3939
"test:cov": "jest --coverage",
40-
"test": "jest --watch",
41-
"release": "standard-version"
42-
},
43-
"standard-version": {
44-
"scripts": {
45-
"prerelease": "yarn test:cov"
46-
}
40+
"test": "jest --watch"
4741
},
4842
"dependencies": {
4943
"tslib": "^2.0.1"
@@ -62,7 +56,6 @@
6256
"rollup": "^2.26.10",
6357
"rollup-plugin-sourcemaps": "^0.6.2",
6458
"rollup-plugin-terser": "^7.0.2",
65-
"standard-version": "^9.0.0",
6659
"ts-jest": "^26.3.0",
6760
"tslint": "^6.1.3",
6861
"typescript": "^4.0.2"

0 commit comments

Comments
 (0)