26
26
- name : Write package.json
27
27
uses : DamianReeves/write-file-action@master
28
28
with :
29
- path : ./ package.json
29
+ path : package.json
30
30
write-mode : overwrite
31
31
contents : |
32
32
{
@@ -37,17 +37,10 @@ jobs:
37
37
"@semantic-release/changelog": "^6.0.3"
38
38
}
39
39
}
40
- - name : Upload artifact package.json
41
- uses : actions/upload-artifact@v4
42
- with :
43
- name : package.json
44
- path : ./package.json
45
- retention-days : 1
46
- if-no-files-found : error
47
40
- name : Write .releaserc.json
48
41
uses : DamianReeves/write-file-action@master
49
42
with :
50
- path : ./. releaserc.json
43
+ path : .releaserc.json
51
44
write-mode : overwrite
52
45
contents : |
53
46
{
@@ -85,11 +78,14 @@ jobs:
85
78
]
86
79
]
87
80
}
88
- - name : Upload artifact .releaserc.json
81
+ - name : Upload artifacts
89
82
uses : actions/upload-artifact@v4
90
83
with :
91
- name : .releaserc.json
92
- path : ./.releaserc.json
84
+ name : semantic-release-artifacts
85
+ path : |
86
+ package.json
87
+ .releaserc.json
88
+ include-hidden-files : true
93
89
retention-days : 1
94
90
if-no-files-found : error
95
91
- name : setup semantic-release
@@ -131,14 +127,10 @@ jobs:
131
127
- uses : actions/setup-node@v4
132
128
with :
133
129
node-version : " lts/*"
134
- - name : Download artifact package.json
135
- uses : actions/download-artifact@v4
136
- with :
137
- name : package.json
138
- - name : Download artifact .releaserc.json
130
+ - name : Download artifacts
139
131
uses : actions/download-artifact@v4
140
132
with :
141
- name : .releaserc.json
133
+ name : semantic-release-artifacts
142
134
- name : setup semantic-release
143
135
run : npm i
144
136
- name : Release
0 commit comments