Skip to content

Commit 0412745

Browse files
committed
feat: update main github workflow to use BOT_TOKEN
1 parent 0aed4c0 commit 0412745

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ name: Build test push release
99
on:
1010
push:
1111
branches:
12-
- '**'
12+
- "**"
1313
tags-ignore:
14-
- '*'
14+
- "*"
1515
env:
1616
COMMIT_MSG: ${{ github.event.head_commit.message }}
1717
CACHE_REGISTRY: ghcr.io
@@ -22,7 +22,6 @@ env:
2222
BOT_EMAIL: ${{ vars.BOT_EMAIL }}
2323
BOT_USERNAME: ${{ vars.BOT_USERNAME }}
2424
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
25-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2625

2726
jobs:
2827
build-test-push-release:
@@ -40,11 +39,11 @@ jobs:
4039
uses: whoan/docker-build-with-cache-action@v8
4140
with:
4241
username: ${{ env.BOT_USERNAME}}
43-
password: '${{ env.BOT_TOKEN }}'
42+
password: "${{ env.BOT_TOKEN }}"
4443
registry: ${{ env.CACHE_REGISTRY }}
4544
image_name: ${{ env.CACHE_REPO }}
4645
image_tag: ${{ env.TAG }}
47-
build_extra_args: '--secret id=NPM_TOKEN,env=NPM_TOKEN'
46+
build_extra_args: "--secret id=NPM_TOKEN,env=BOT_TOKEN"
4847
- name: Retag from cache and push
4948
if: ${{ github.actor != 'dependabot[bot]' }}
5049
run: |
@@ -78,4 +77,4 @@ jobs:
7877
with:
7978
tag: ${{ steps.git_tag.outputs.tag }}
8079
name: Release ${{ steps.git_tag.outputs.tag }}
81-
bodyFile: 'NEW_CHANGELOG.md'
80+
bodyFile: "NEW_CHANGELOG.md"

0 commit comments

Comments
 (0)