12
12
- uses : actions/setup-node@v3
13
13
with :
14
14
node-version : 16
15
+ registry-url : ' https://registry.npmjs.org'
15
16
16
17
- run : npm install
17
18
@@ -111,12 +112,12 @@ jobs:
111
112
112
113
- name : Build and push image:tags
113
114
uses : docker/build-push-action@v3
114
- if : steps.create_tag .outputs.successful
115
+ if : needs.build .outputs.successful
115
116
with :
116
117
push : true
117
118
context : .
118
119
platforms : linux/amd64,linux/arm64
119
- tags : ${{ secrets.DOCKER_USER }}/tools:${{steps.changelog .outputs.version }}
120
+ tags : ${{ secrets.DOCKER_USER }}/tools:${{needs.build .outputs.create_tag_versionNumber }}
120
121
121
122
# Create Docker Image in Github
122
123
- name : Login to the GitHub Container Registry
@@ -136,12 +137,12 @@ jobs:
136
137
137
138
- name : Build and push image:tags
138
139
uses : docker/build-push-action@v3
139
- if : steps.create_tag .outputs.successful
140
+ if : needs.build .outputs.successful
140
141
with :
141
142
push : true
142
143
context : .
143
144
platforms : linux/amd64,linux/arm64
144
- tags : ghcr.io/jaywcjlove/tools:${{steps.changelog .outputs.version }}
145
+ tags : ghcr.io/jaywcjlove/tools:${{needs.build .outputs.create_tag_versionNumber }}
145
146
146
147
147
148
@@ -401,11 +402,10 @@ jobs:
401
402
with :
402
403
ref : ${{ github.head_ref }}
403
404
404
- - uses : dev-drprasad/delete-tag-and-release@v0.2 .0
405
+ - uses : dev-drprasad/delete-tag-and-release@v1 .0
405
406
if : needs.build.outputs.successful
406
407
with :
407
408
delete_release : true
408
409
repo : jaywcjlove/tools
410
+ github_token : ${{ secrets.GITHUB_TOKEN }}
409
411
tag_name : ' ${{ needs.build.outputs.create_tag_version }}'
410
- env :
411
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments