Skip to content

Commit 6a061bb

Browse files
committed
fix: initial
1 parent 45415a6 commit 6a061bb

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- "releasetest/**"
7+
jobs:
8+
release:
9+
if: "!contains(github.event.head_commit.message, 'skip ci')"
10+
name: Release
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
run: npx semantic-release

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "react-time-series",
33
"version": "0.1.0",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/UniversalDataTool/react-time-series.git"
7+
},
48
"dependencies": {
59
"@material-ui/core": "^4.11.0",
610
"@material-ui/icons": "^4.9.1",

releaserc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
branch: "master",
3+
plugins: [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/npm", { npmPublish: true }],
7+
"@semantic-release/github",
8+
[
9+
"@semantic-release/git",
10+
{
11+
assets: ["package.json"],
12+
message:
13+
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
14+
},
15+
],
16+
],
17+
}

0 commit comments

Comments
 (0)