File tree Expand file tree Collapse file tree 3 files changed +49
-5
lines changed Expand file tree Collapse file tree 3 files changed +49
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*.*.*
7
+
8
+ concurrency :
9
+ group : publish
10
+ cancel-in-progress : false
11
+
12
+ # configured as trusted publisher (OIDC)
13
+ # https://docs.npmjs.com/trusted-publishers
14
+ permissions :
15
+ contents : read
16
+ id-token : write
17
+
18
+ env :
19
+ NX_NON_NATIVE_HASHER : true
20
+ NX_CLOUD_ACCESS_TOKEN : ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
21
+
22
+ jobs :
23
+ publish :
24
+ name : Publish packages
25
+ runs-on : ubuntu-latest
26
+ environment : release
27
+ steps :
28
+ - name : Clone the repository
29
+ uses : actions/checkout@v4
30
+ with :
31
+ fetch-depth : 0
32
+ - name : Configure Git user
33
+ # https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token
34
+ run : |
35
+ git config user.name github-actions[bot]
36
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
37
+ - name : Set up Node.js
38
+ uses : actions/setup-node@v4
39
+ with :
40
+ node-version-file : .node-version
41
+ cache : npm
42
+ - name : Install dependencies
43
+ run : npm ci
44
+ - name : Publish packages to npm
45
+ run : npx nx release publish
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ concurrency:
11
11
12
12
jobs :
13
13
release :
14
- name : Publish packages
14
+ name : Version and release
15
15
runs-on : ubuntu-latest
16
16
environment : release
17
17
env :
@@ -38,15 +38,14 @@ jobs:
38
38
with :
39
39
fetch-depth : 0
40
40
token : ${{ steps.app-token.outputs.token }}
41
- persist-credentials : false
42
41
- name : Set up Node.js
43
42
uses : actions/setup-node@v4
44
43
with :
45
44
node-version-file : .node-version
46
45
cache : npm
47
46
- name : Install dependencies
48
47
run : npm ci
49
- - name : Version, release and publish packages
50
- run : npx nx release --yes
48
+ - name : Version, release and generate changelog
49
+ run : npx nx release --skip-publish
51
50
env :
52
51
GH_TOKEN : ${{ steps.app-token.outputs.token }}
Original file line number Diff line number Diff line change 332
332
"push" : true ,
333
333
"pushRemote" : " origin" ,
334
334
"tag" : true ,
335
- "commitMessage" : " release: {version} [skip ci] "
335
+ "commitMessage" : " release: {version}"
336
336
},
337
337
"version" : {
338
338
"conventionalCommits" : true ,
You can’t perform that action at this time.
0 commit comments