Skip to content

Commit d978bb2

Browse files
committed
chore: update workflows config.
1 parent 5475cd2 commit d978bb2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: 16
15+
registry-url: 'https://registry.npmjs.org'
1516

1617
- run: npm install
1718

@@ -111,12 +112,12 @@ jobs:
111112

112113
- name: Build and push image:tags
113114
uses: docker/build-push-action@v3
114-
if: steps.create_tag.outputs.successful
115+
if: needs.build.outputs.successful
115116
with:
116117
push: true
117118
context: .
118119
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}}
120121

121122
# Create Docker Image in Github
122123
- name: Login to the GitHub Container Registry
@@ -136,12 +137,12 @@ jobs:
136137

137138
- name: Build and push image:tags
138139
uses: docker/build-push-action@v3
139-
if: steps.create_tag.outputs.successful
140+
if: needs.build.outputs.successful
140141
with:
141142
push: true
142143
context: .
143144
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}}
145146

146147

147148

@@ -401,11 +402,10 @@ jobs:
401402
with:
402403
ref: ${{ github.head_ref }}
403404

404-
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
405+
- uses: dev-drprasad/delete-tag-and-release@v1.0
405406
if: needs.build.outputs.successful
406407
with:
407408
delete_release: true
408409
repo: jaywcjlove/tools
410+
github_token: ${{ secrets.GITHUB_TOKEN }}
409411
tag_name: '${{ needs.build.outputs.create_tag_version }}'
410-
env:
411-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)