Skip to content

Commit 6b0ca56

Browse files
committed
chore: configura release automático con changelog y publicación
1 parent 3abade7 commit 6b0ca56

File tree

3 files changed

+29
-25
lines changed

3 files changed

+29
-25
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release & Publish to npm
1+
name: Release & Publish
22

33
on:
44
push:
@@ -11,14 +11,12 @@ permissions:
1111

1212
jobs:
1313
release:
14-
name: Release
1514
runs-on: ubuntu-latest
16-
1715
steps:
1816
- name: Checkout
1917
uses: actions/checkout@v4
2018
with:
21-
fetch-depth: 0 # required for tags
19+
fetch-depth: 0
2220

2321
- name: Setup Node
2422
uses: actions/setup-node@v4
@@ -32,17 +30,24 @@ jobs:
3230
- name: Build library
3331
run: npm run ngx-notion-cms:build
3432

35-
- name: Generate release & changelog
33+
- name: Replace ngx-notion-cms dependency with local file
34+
run: |
35+
jq '.dependencies["ngx-notion-cms"] = "file:dist/ngx-notion-cms"' package.json > tmp.json && mv tmp.json package.json
36+
37+
- name: Install with local ngx-notion-cms
38+
run: npm install
39+
40+
- name: Generate release and changelog
3641
run: npm run release:ci
3742
env:
3843
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3944

4045
- name: Publish to npm
41-
run: npm publish dist/ngx-notion-cms/ --access public
46+
run: npm publish dist/ngx-notion-cms --access public
4247
env:
4348
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4449

45-
- name: Push release changes
50+
- name: Push release commit and tag
4651
run: |
4752
git config user.name "github-actions[bot]"
4853
git config user.email "github-actions[bot]@users.noreply.github.com"

.releaserc.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
2-
"types": [
3-
{ "type": "feat", "section": "✨ Features" },
4-
{ "type": "fix", "section": "🐛 Fixes" },
5-
{ "type": "chore", "section": "🧹 Chores", "hidden": false },
6-
{ "type": "docs", "section": "📝 Docs" },
7-
{ "type": "style", "section": "💅 Styles" },
8-
{ "type": "refactor", "section": "🔨 Refactors" },
9-
{ "type": "test", "section": "🧪 Tests" }
10-
],
11-
"skip": {
12-
"commit": false,
13-
"tag": false
14-
},
15-
"commitAll": true
16-
}
17-
2+
"types": [
3+
{ "type": "feat", "section": "✨ Features" },
4+
{ "type": "fix", "section": "🐛 Fixes" },
5+
{ "type": "chore", "section": "🧹 Chores" },
6+
{ "type": "docs", "section": "📝 Docs" },
7+
{ "type": "style", "section": "💅 Styles" },
8+
{ "type": "refactor", "section": "🔨 Refactors" },
9+
{ "type": "test", "section": "🧪 Tests" }
10+
],
11+
"skip": {
12+
"commit": false,
13+
"tag": false
14+
},
15+
"commitAll": true
16+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-workspace",
3-
"version": "18.0.0",
3+
"version": "19.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -37,7 +37,7 @@
3737
"@angular/ssr": "^19.2.7",
3838
"express": "^4.18.2",
3939
"ngx-highlightjs": "^12.0.0",
40-
"ngx-notion-cms": "^0.0.0-beta",
40+
"ngx-notion-cms": "file:dist/ngx-notion-cms",
4141
"rxjs": "~7.8.0",
4242
"tslib": "^2.3.0",
4343
"zone.js": "~0.15.0"

0 commit comments

Comments
 (0)