Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #165 from crishellco/cm/cz
Browse files Browse the repository at this point in the history
chore(unleash):  semantic release
  • Loading branch information
crishellco authored Jul 3, 2021
2 parents 94e8b42 + d58bc06 commit efdb8d9
Show file tree
Hide file tree
Showing 9 changed files with 2,723 additions and 193 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
27 changes: 0 additions & 27 deletions .github/workflows/build.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node.js CI
'on':
push:
branches:
- master
- alpha
- beta
pull_request:
types:
- opened
- synchronize

env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- run: yarn install
- run: yarn test
env:
CI: true
- uses: codecov/codecov-action@v1
- run: yarn build
- run: yarn release
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43 changes: 0 additions & 43 deletions .github/workflows/publish.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn test
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@form8ion'] };
21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"src"
],
"scripts": {
"test": "jest",
"lint": "eslint --ext .js,.vue src/",
"lint:fix": "eslint --ext .js,.vue src/ --fix",
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js"
"test": "npm-run-all --print-label --parallel lint:* --parallel test:*",
"test:js": "jest",
"lint:js": "eslint --ext .js,.vue src/",
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js",
"release": "semantic-release"
},
"repository": {
"type": "git",
Expand All @@ -28,6 +29,8 @@
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@commitlint/cli": "^12.1.4",
"@form8ion/commitlint-config": "^1.0.19",
"@vue/test-utils": "^1.0.0-beta.30",
"axios": "^0.19.0",
"babel-core": "^7.0.0-bridge.0",
Expand All @@ -37,17 +40,20 @@
"babel-preset-env": "^1.7.0",
"babel-preset-vue": "^2.0.2",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "3.3.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-loader": "^3.0.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-vue": "^6.0.1",
"husky": "^4.2.3",
"husky": "^7.0.0",
"jest": "^24.9.0",
"lodash.keyby": "^4.6.0",
"npm-run-all": "^4.1.5",
"poi": "^12.7.1",
"prettier": "^1.19.1",
"regenerator-runtime": "^0.13.3",
"semantic-release": "^17.4.4",
"uglifyjs-webpack-plugin": "^2.2.0",
"vue": "^2.6.11",
"vue-html-loader": "^1.2.4",
Expand All @@ -62,5 +68,10 @@
"peerDependencies": {
"vue": "^2.6.10",
"vuex": "^3.1.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
Loading

0 comments on commit efdb8d9

Please sign in to comment.