Skip to content

Commit 0d66757

Browse files
committed
ci: add multi-semantic-release
1 parent b7f673d commit 0d66757

File tree

7 files changed

+2569
-1269
lines changed

7 files changed

+2569
-1269
lines changed

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 14
23+
24+
- name: Install dependencies
25+
run: yarn install
26+
27+
- name: Run tests
28+
run: yarn test
29+
30+
release:
31+
name: Release
32+
runs-on: ubuntu-latest
33+
needs: [test]
34+
if: ${{ github.event_name == 'push' }}
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v2
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v1
41+
with:
42+
node-version: 14
43+
44+
- name: Install dependencies
45+
run: yarn install
46+
47+
- name: Release
48+
env:
49+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
run: yarn multi-semantic-release

.releaserc.json

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This component is inspired by [react-js-cron](https://github.com/xrutayisire/rea
66

77
# Getting Started
88

9-
Read the [docs](https://abichinger.github.com/vue-js-cron/)
9+
Read the [docs](https://abichinger.github.io/vue-js-cron/)
1010

1111
# Packages
1212

core/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@vue-js-cron/core",
33
"version": "1.0.0",
44
"description": "A renderless Vue.js cron editor.",
5+
"repository": "https://github.com/abichinger/vue-js-cron",
6+
"author": "Andreas Bichinger",
7+
"license": "MIT",
58
"main": "dist/core.umd.js",
69
"module": "dist/core.esm.js",
710
"unpkg": "dist/core.min.js",
@@ -23,8 +26,6 @@
2326
"vue.js",
2427
"vue"
2528
],
26-
"author": "Andreas Bichinger",
27-
"license": "MIT",
2829
"dependencies": {
2930
"mustache": "^4.2.0"
3031
},

package.json

Lines changed: 52 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,53 @@
11
{
2-
"private": true,
3-
"workspaces": ["core", "docs", "vuetify"],
4-
"scripts": {
5-
"build": "yarn build-core && yarn build-vuetify && yarn build-docs",
6-
"build-docs": "cd docs && yarn build",
7-
"build-core": "cd core && yarn build",
8-
"build-vuetify": "cd vuetify && yarn build",
9-
"dev-docs": "cd docs && yarn dev",
10-
"dev-core": "cd core && yarn serve",
11-
"dev-vuetify": "cd vuetify && yarn serve",
12-
"test": "yarn test-core",
13-
"test-core": "cd core && yarn test"
14-
},
15-
"devDependencies": {
16-
"@babel/core": "^7.12.13",
17-
"@babel/preset-env": "^7.12.13",
18-
"@rollup/plugin-buble": "^0.21.3",
19-
"@rollup/plugin-commonjs": "^17.1.0",
20-
"@vue/compiler-sfc": "^3.0.5",
21-
"@vue/test-utils": "^1.1.3",
22-
"babel-core": "^7.0.0-bridge.0",
23-
"babel-jest": "^26.6.3",
24-
"jest": "^26.6.3",
25-
"rollup": "^2.38.5",
26-
"rollup-jest": "^1.1.1",
27-
"rollup-plugin-vue": "^5.1.9",
28-
"vue-jest": "^3.0.7",
29-
"vue-template-compiler": "^2.6.12"
30-
},
31-
"dependencies": {
32-
"vue": "^2.6.12"
33-
}
34-
}
2+
"name": "vue-js-cron",
3+
"repository": "https://github.com/abichinger/vue-js-cron",
4+
"author": "Andreas Bichinger",
5+
"license": "MIT",
6+
"private": true,
7+
"workspaces": [
8+
"core",
9+
"vuetify",
10+
"!docs"
11+
],
12+
"scripts": {
13+
"build": "yarn build-core && yarn build-vuetify && yarn build-docs",
14+
"build-docs": "cd docs && yarn build",
15+
"build-core": "cd core && yarn build",
16+
"build-vuetify": "cd vuetify && yarn build",
17+
"dev-docs": "cd docs && yarn dev",
18+
"dev-core": "cd core && yarn serve",
19+
"dev-vuetify": "cd vuetify && yarn serve",
20+
"test": "yarn test-core",
21+
"test-core": "cd core && yarn test",
22+
"dry-run": "multi-semantic-release --dry-run"
23+
},
24+
"devDependencies": {
25+
"@babel/core": "^7.12.13",
26+
"@babel/preset-env": "^7.12.13",
27+
"@rollup/plugin-buble": "^0.21.3",
28+
"@rollup/plugin-commonjs": "^17.1.0",
29+
"@semantic-release/commit-analyzer": "^9.0.2",
30+
"@semantic-release/git": "^10.0.1",
31+
"@semantic-release/github": "^8.0.2",
32+
"@semantic-release/npm": "^8.0.3",
33+
"@semantic-release/release-notes-generator": "^10.0.3",
34+
"@vue/compiler-sfc": "^3.0.5",
35+
"@vue/test-utils": "^1.1.3",
36+
"babel-core": "^7.0.0-bridge.0",
37+
"babel-jest": "^26.6.3",
38+
"jest": "^26.6.3",
39+
"multi-semantic-release": "^2.11.0",
40+
"rollup": "^2.38.5",
41+
"rollup-jest": "^1.1.1",
42+
"rollup-plugin-vue": "^5.1.9",
43+
"vue-jest": "^3.0.7",
44+
"vue-template-compiler": "^2.6.12"
45+
},
46+
"dependencies": {
47+
"vue": "^2.6.12"
48+
},
49+
"files": [
50+
"package.json",
51+
"dist"
52+
]
53+
}

vuetify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"browser": {
99
"./sfc": "src/CronEditor.vue"
1010
},
11-
"repository": "example.com",
11+
"repository": "https://github.com/abichinger/vue-js-cron",
1212
"author": "Andreas Bichinger",
1313
"license": "MIT",
1414
"scripts": {

0 commit comments

Comments
 (0)