Skip to content

Commit d22a4ab

Browse files
committed
fix: implement semantic version
1 parent 8bdf62c commit d22a4ab

File tree

3 files changed

+213
-6
lines changed

3 files changed

+213
-6
lines changed

.github/workflows/CI-time-tracker-ui.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99

1010
jobs:
1111
# security-audit:
12-
# name: Running npm audit
13-
# runs-on: ubuntu-latest
14-
# timeout-minutes: 60
15-
# steps:
12+
# name: Running npm audit
13+
# runs-on: ubuntu-latest
14+
# timeout-minutes: 60
15+
# steps:
1616
# # - name: Clone and checkout branch
1717
# # uses: actions/checkout@master
1818

@@ -42,6 +42,7 @@ jobs:
4242
- name: Install dependencies
4343
run: npm install
4444

45+
4546
# - name: Inject Secrets
4647
# shell: python
4748
# env:
@@ -65,8 +66,10 @@ jobs:
6566
# - name: Run the test
6667
# run: npm run ci-test --if-present
6768

69+
70+
6871
- name: Run Semantic-release
72+
run: npx semantic-release
6973
env:
7074
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
71-
run: npx semantic-release
7275

package-lock.json

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@
3636
"@angular/cli": "~9.0.4",
3737
"@angular/compiler-cli": "~9.0.3",
3838
"@angular/language-service": "~9.0.3",
39+
"@semantic-release/changelog": "^5.0.1",
40+
"@semantic-release/git": "^9.0.0",
3941
"@types/jasmine": "~3.5.0",
4042
"@types/jasminewd2": "~2.0.3",
4143
"@types/node": "^12.11.1",
4244
"codelyzer": "^5.1.2",
4345
"commit-message-validator": "^0.1.11",
46+
"conventional-changelog-eslint": "^3.0.4",
4447
"husky": "^4.2.3",
4548
"jasmine-core": "~3.5.0",
4649
"jasmine-spec-reporter": "~4.2.1",
@@ -69,7 +72,32 @@
6972
}
7073
},
7174
"release": {
72-
"branches": ["master", "48-implement-semantic-version"],
75+
"branches": [
76+
"master",
77+
"48-implement-semantic-version"
78+
],
79+
"plugins": [
80+
"@semantic-release/commit-analyzer",
81+
[
82+
"@semantic-release/npm",
83+
{
84+
"npmPublish": false
85+
}
86+
]
87+
],
88+
"prepare": [
89+
"@semantic-release/changelog",
90+
"@semantic-release/npm",
91+
{
92+
"path": "@semantic-release/git",
93+
"assets": [
94+
"package.json",
95+
"package-lock.json",
96+
"CHANGELOG.md"
97+
],
98+
"message": "chore(release): ${nextRelease.version} [skip ci]nn${nextRelease.notes}"
99+
}
100+
],
73101
"repositoryUrl": "https://github.com/ioet/time-tracker-ui.git"
74102
}
75103
}

0 commit comments

Comments
 (0)