fix: missing the npm install during publish (#433)

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
This commit is contained in:
Rick 2024-05-16 09:03:35 +08:00 committed by GitHub
parent ce31b7145a
commit 344694031b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ jobs:
export TAG=$(gh release list -L 1 | awk '{print $4}')
export TAG=${TAG#"v"}
jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json
npm i
npm run publish
- name: Upload
env:
@ -154,6 +155,7 @@ jobs:
export TAG=$(git describe --tags --abbrev=0)
export TAG=${TAG#"v"}
jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json
npm i
npm run publish
# image-operator: