Skip to content

Commit 887a5e1

Browse files
committed
(CI): fix npm publish
1 parent 545c028 commit 887a5e1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/cd-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: ./.github/workflows/w-deploy-npm.yml
1111
with:
1212
checkout_ref: ${{ github.event.release.target_commitish }}
13-
tag_name: ${{ github.event.release.tag_name }}
13+
tag: ${{ github.event.release.name }}
1414
secrets:
1515
NPM: ${{ secrets.NPM_TOKEN }}
1616
GITHUB: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/w-deploy-npm.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
type: string
88
required: true
99
tag_name:
10-
type: string
11-
required: true
12-
tag:
1310
type: string
1411
default: latest
1512
required: false
13+
tag:
14+
type: string
15+
required: true
1616
secrets:
1717
NPM:
1818
required: true
@@ -32,7 +32,7 @@ jobs:
3232
- run: |
3333
git config --global user.name "RNB Bot"
3434
git config --global user.email "[email protected]"
35-
npm --no-git-tag-version version ${{ inputs.tag_name }}
35+
npm --no-git-tag-version version ${{ inputs.tag }}
3636
- name: Install dependencies
3737
run: |
3838
if [ -e yarn.lock ]; then
@@ -45,7 +45,7 @@ jobs:
4545
- name: Commit and push
4646
run: |
4747
git add .
48-
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
48+
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag }}"
4949
git push
5050
env:
5151
github-token: ${{ secrets.GITHUB }}

0 commit comments

Comments
 (0)