File tree Expand file tree Collapse file tree 3 files changed +29
-25
lines changed Expand file tree Collapse file tree 3 files changed +29
-25
lines changed Original file line number Diff line number Diff line change 1
- name : Release & Publish to npm
1
+ name : Release & Publish
2
2
3
3
on :
4
4
push :
@@ -11,14 +11,12 @@ permissions:
11
11
12
12
jobs :
13
13
release :
14
- name : Release
15
14
runs-on : ubuntu-latest
16
-
17
15
steps :
18
16
- name : Checkout
19
17
uses : actions/checkout@v4
20
18
with :
21
- fetch-depth : 0 # required for tags
19
+ fetch-depth : 0
22
20
23
21
- name : Setup Node
24
22
uses : actions/setup-node@v4
@@ -32,17 +30,24 @@ jobs:
32
30
- name : Build library
33
31
run : npm run ngx-notion-cms:build
34
32
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
36
41
run : npm run release:ci
37
42
env :
38
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
44
40
45
- name : Publish to npm
41
- run : npm publish dist/ngx-notion-cms/ --access public
46
+ run : npm publish dist/ngx-notion-cms --access public
42
47
env :
43
48
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
44
49
45
- - name : Push release changes
50
+ - name : Push release commit and tag
46
51
run : |
47
52
git config user.name "github-actions[bot]"
48
53
git config user.email "github-actions[bot]@users.noreply.github.com"
Original file line number Diff line number Diff line change 1
1
{
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
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " notion-workspace" ,
3
- "version" : " 18 .0.0" ,
3
+ "version" : " 19 .0.0" ,
4
4
"scripts" : {
5
5
"ng" : " ng" ,
6
6
"start" : " ng serve" ,
37
37
"@angular/ssr" : " ^19.2.7" ,
38
38
"express" : " ^4.18.2" ,
39
39
"ngx-highlightjs" : " ^12.0.0" ,
40
- "ngx-notion-cms" : " ^0.0.0-beta " ,
40
+ "ngx-notion-cms" : " file:dist/ngx-notion-cms " ,
41
41
"rxjs" : " ~7.8.0" ,
42
42
"tslib" : " ^2.3.0" ,
43
43
"zone.js" : " ~0.15.0"
You can’t perform that action at this time.
0 commit comments