Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #632 from aziiee/configure-semantic-release
Browse files Browse the repository at this point in the history
chore: configure semantic release
  • Loading branch information
Akanksh Saxena authored Oct 19, 2021
2 parents b5324ea + 96808b5 commit 6980cd1
Show file tree
Hide file tree
Showing 4 changed files with 2,591 additions and 62 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on: workflow_dispatch

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2

- name: Install dependencies
run: yarn install

- name: Release on NPM
run: yarn semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# skip in CI
[ -n "$CI" ] && exit 0

# lint commit message
yarn commitlint --edit $1
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@
"start": "ember server --proxy http://localhost:8000",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"test": "ember test"
"test": "ember test",
"prepare": "husky install"
},
"engines": {
"node": "12.* || >= 14.*"
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"devDependencies": {
"@adfinis-sygroup/eslint-config": "^1.2.0",
"@adfinis-sygroup/semantic-release-config": "^3.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@ember/jquery": "^1.1.0",
"@ember/optional-features": "^1.1.0",
Expand Down Expand Up @@ -90,11 +94,18 @@
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-prettier": "^3.1.2",
"faker": "^4.1.0",
"husky": "^7.0.2",
"loader.js": "^4.7.0",
"pagination-pager": "^3.2.0",
"prettier": "1.19.1",
"qunit-dom": "^0.8.4",
"sass": "^1.24.2",
"typeface-source-sans-pro": "^0.0.75"
},
"engines": {
"node": "12.* || >= 14.*"
},
"release": {
"extends": "@adfinis-sygroup/semantic-release-config"
}
}
Loading

0 comments on commit 6980cd1

Please sign in to comment.