Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit ee0b715

Browse files
committed
feat(ci): add semantic release with github actions
1 parent 4769e0e commit ee0b715

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
- dev
11+
12+
jobs:
13+
test-and-release:
14+
name: Run tests and release
15+
runs-on: ubuntu-18.04
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v1
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Run tests
26+
run: npm test
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npm run semantic-release

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asigloo/vue-dynamic-forms",
3-
"version": "0.3.1",
3+
"version": "0.0.0-development",
44
"description": "Easy way to dynamically create reactive forms in vue based on varying business object model",
55
"author": "Alvaro Saburido <[email protected]>",
66
"license": "MIT",
@@ -11,14 +11,18 @@
1111
"bugs": {
1212
"url": "https://github.com/alvarosaburido/vue-dynamic-forms/issues"
1313
},
14+
"publishConfig": {
15+
"access": "public"
16+
},
1417
"scripts": {
1518
"serve": "vue-cli-service serve",
1619
"build": "vue-cli-service build --target lib --name as-dynamic-forms src/index.js",
1720
"lint": "vue-cli-service lint",
1821
"test": "vue-cli-service test:unit --verbose --no-cache --watchAll",
1922
"publish": "npm run build && npm publish --access public",
2023
"docs:dev": "vuepress dev docs",
21-
"docs:build": "vuepress build docs"
24+
"docs:build": "vuepress build docs",
25+
"semantic-release": "semantic-release"
2226
},
2327
"main": "dist/as-dynamic-forms.common.js",
2428
"dependencies": {
@@ -45,6 +49,7 @@
4549
"sass-loader": "^9.0.1",
4650
"vue-select": "^3.10.7",
4751
"vue-template-compiler": "^2.6.11",
48-
"vuepress": "^1.5.2"
52+
"vuepress": "^1.5.2",
53+
"semantic-release": "^17.1.1"
4954
}
5055
}

0 commit comments

Comments
 (0)