Skip to content

Commit b050d93

Browse files
committed
Merge pull request #1 from abichinger/develop
ci: add multi-semantic-release
2 parents b7f673d + 0d66757 commit b050d93

File tree

10 files changed

+2610
-134
lines changed

10 files changed

+2610
-134
lines changed

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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: Build
48+
run: yarn build-core && yarn build-vuetify
49+
50+
- name: Release
51+
env:
52+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
53+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
run: yarn multi-semantic-release --ignore-private-packages

.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/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access = "public"

core/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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",
8+
"private": false,
59
"main": "dist/core.umd.js",
610
"module": "dist/core.esm.js",
711
"unpkg": "dist/core.min.js",
@@ -23,12 +27,14 @@
2327
"vue.js",
2428
"vue"
2529
],
26-
"author": "Andreas Bichinger",
27-
"license": "MIT",
2830
"dependencies": {
2931
"mustache": "^4.2.0"
3032
},
3133
"devDependencies": {
3234
"@vue/cli-service": "^4.5.15"
33-
}
35+
},
36+
"files": [
37+
"package.json",
38+
"dist"
39+
]
3440
}

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.1",
44
"description": "vue-js-cron documentation",
55
"main": "index.js",
6+
"private": true,
67
"authors": {
78
"name": "Andreas Bichinger",
89
"email": "andreas.bichinger@gmail.com"

package.json

Lines changed: 48 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,49 @@
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+
"workspaces": [
7+
"core",
8+
"vuetify",
9+
"docs"
10+
],
11+
"private": true,
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+
}

vuetify/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access = "public"

vuetify/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
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",
14+
"private": false,
1415
"scripts": {
1516
"test": "jest",
1617
"serve": "vue-cli-service serve dev/serve.js",
@@ -26,5 +27,9 @@
2627
"devDependencies": {
2728
"@vue/cli-service": "^4.5.15",
2829
"rollup-plugin-css-only": "^3.1.0"
29-
}
30+
},
31+
"files": [
32+
"package.json",
33+
"dist"
34+
]
3035
}

0 commit comments

Comments
 (0)