Skip to content

Commit 0771235

Browse files
committed
ci: releaserc
1 parent 36ae3bb commit 0771235

File tree

4 files changed

+172
-47
lines changed

4 files changed

+172
-47
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
# build:
14-
# runs-on: ubuntu-latest
15-
# steps:
16-
# - uses: actions/checkout@v4
17-
# - uses: actions/setup-node@v3
18-
# with:
19-
# node-version: 20
20-
# cache: 'npm'
21-
# - run: npm i
22-
# - name: lint
23-
# run: npm run lint
24-
# - run: npm run build
25-
# - name: Run test
26-
# run: npm run test:ci
27-
# - name: Upload coverage reports to Codecov
28-
# uses: codecov/codecov-action@v4.0.1
29-
# with:
30-
# token: ${{ secrets.CODECOV_TOKEN }}
31-
# slug: rbalet/ngx-back-button
32-
3313
publish:
34-
# needs: build
3514
runs-on: ubuntu-latest
3615
if: github.ref_name == 'main'
3716
permissions:
@@ -64,7 +43,7 @@ jobs:
6443
run: pnpm run build && pnpm run copy-files
6544

6645
- name: 🚀 release
67-
run: cd dist/ngx-back-button && pnpm exec semantic-release --branches main
46+
run: pnpm -C . exec semantic-release --branches main
6847
env:
6948
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7049
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
[
9+
"@semantic-release/npm",
10+
{
11+
"pkgRoot": "dist/ngx-back-button"
12+
}
13+
],
14+
"@semantic-release/github"
15+
]
16+
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,20 @@
4848
"@angular-devkit/build-angular": "21.2.0",
4949
"@angular/cli": "21.2.0",
5050
"@angular/compiler-cli": "21.2.0",
51+
"@semantic-release/commit-analyzer": "^13.0.1",
52+
"@semantic-release/git": "^10.0.1",
5153
"@semantic-release/github": "12.0.6",
54+
"@semantic-release/npm": "^13.1.5",
55+
"@semantic-release/release-notes-generator": "^14.1.0",
5256
"@types/jasmine": "5.1.15",
5357
"jasmine-core": "5.13.0",
5458
"karma": "6.4.4",
5559
"karma-chrome-launcher": "3.2.0",
5660
"karma-coverage": "2.2.1",
5761
"karma-jasmine": "5.1.0",
58-
"semantic-release": "25.0.3",
5962
"karma-jasmine-html-reporter": "2.2.0",
6063
"ng-packagr": "21.2.0",
64+
"semantic-release": "25.0.3",
6165
"typescript": "5.9.3"
6266
},
6367
"release": {

0 commit comments

Comments
 (0)