Skip to content

Commit

Permalink
feat: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
sbolel committed Oct 24, 2020
1 parent 47445e5 commit a1a0457
Show file tree
Hide file tree
Showing 3 changed files with 4,302 additions and 75 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ jobs:
yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Deploy to Firebase
- name: Semantic Release
run: yarn semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
run: yarn deploy-ci
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
70 changes: 68 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sinanbolel",
"version": "2.3.1",
"version": "0.0.0-semantic-release",
"private": true,
"author": "Sinan Bolel <sbolel@users.noreply.github.com>",
"description": "Sinan Bolel's Personal Website",
Expand All @@ -18,22 +18,88 @@
"predeploy-ci": "firebase use default",
"deploy": "firebase deploy --only database:rules,hosting",
"deploy-ci": "firebase deploy --only database:rules,hosting -m \"[ci] $(git rev-parse --short HEAD)\" --token \"$FIREBASE_TOKEN\"",
"start": "grunt serve"
"start": "grunt serve",
"semantic-release": "semantic-release"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-angular": "^11.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/github": "^7.1.1",
"@semantic-release/npm": "^7.0.6",
"@semantic-release/release-notes-generator": "^9.0.1",
"grunt": "^1.3.0",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-connect": "^3.0.0",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-htmlmin": "^3.1.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-replace": "^1.0.1",
"husky": "^4.3.0",
"md5": "^2.3.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.2.1",
"serve": "^11.3.2",
"yarn-run-all": "^3.1.1"
},
"optionalDependencies": {
"ionicons": "^5.2.3"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-angular"
]
},
"release": {
"private": true,
"branches": [
"master",
"next",
{
"name": "alpha",
"prerelease": true
},
{
"name": "beta",
"prerelease": true
}
],
"tagFormat": "v${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular"
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/github",
{
"assets": [
"CHANGELOG.md",
"README.md"
]
}
]
],
"preset": "angular"
}
}
Loading

0 comments on commit a1a0457

Please sign in to comment.