File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,28 @@ jobs:
17
17
18
18
# The logic below handles npm publication. Each step is conditional on a
19
19
# release having been created by someone merging the release PR.
20
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@v4
21
+ with :
22
+ ref : refs/tags/${{ steps.release.outputs.tag_name }}
21
23
if : ${{ steps.release.outputs.release_created }}
24
+
22
25
- uses : actions/setup-node@v1
23
26
with :
24
27
node-version : 12
25
28
registry-url : ' https://registry.npmjs.org'
26
29
if : ${{ steps.release.outputs.release_created }}
30
+
27
31
- run : npm ci
28
32
if : ${{ steps.release.outputs.release_created }}
33
+
29
34
- run : npm publish
30
35
env :
31
36
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
32
37
if : ${{ steps.release.outputs.release_created }}
38
+
33
39
- run : npm pack
34
40
if : ${{ steps.release.outputs.release_created }}
41
+
35
42
- uses : svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2
36
43
with :
37
44
repo_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments