Skip to content

Commit

Permalink
Merge pull request #16 from alfa-laboratory/add-semantic-release
Browse files Browse the repository at this point in the history
feat(*): adds new packages
  • Loading branch information
IBelyaev authored Sep 2, 2020
2 parents 341159d + 6231854 commit aaca8e2
Show file tree
Hide file tree
Showing 6 changed files with 3,715 additions and 1,152 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Compile and test

on: [push]
on: push

jobs:
build:
Expand All @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create new library package

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create new version
run: yarn --frozen-lockfile && yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
WORK_SPACE: ${{ github.workspace }}
CI: true
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
},
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "9.1.2",
"@commitlint/config-conventional": "9.1.2",
"@semantic-release/changelog": "5.0.0",
"@semantic-release/commit-analyzer": "8.0.1",
"@semantic-release/github": "7.0.0",
"@semantic-release/npm": "7.0.3",
"@semantic-release/release-notes-generator": "9.0.1",
"@types/enzyme": "^3.1.18",
"@types/enzyme-adapter-react-16": "^1.0.4",
"@types/jest": "^24.0.6",
Expand All @@ -25,10 +32,12 @@
"conventional-changelog-cli": "^2.0.12",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.9.1",
"husky": "4.2.5",
"jest": "^24.1.0",
"library-utils": "3.0.2",
"react": "16.8.2",
"react-dom": "^16.8.2",
"semantic-release": "^17.1.1",
"ts-jest": "^24.0.0"
},
"peerDependencies": {
Expand All @@ -50,5 +59,10 @@
"setupFiles": [
"<rootDir>/__tests__/setup.ts"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
11 changes: 11 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/github',
'@semantic-release/npm',
],
branches: ['master'],
repositoryUrl: 'https://github.com/alfa-laboratory/bem-react-classname',
};
Loading

0 comments on commit aaca8e2

Please sign in to comment.