Skip to content

Commit 83af74f

Browse files
authored
Merge pull request #99 from cloudcome/feat/v0.x
Feat/v0.x
2 parents 6208deb + dd04a6a commit 83af74f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/npm-publish/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
steps:
1515
- id: pkg
1616
uses: jaywcjlove/github-action-package@main
17-
- id: name
17+
- id: naming
1818
shell: bash
1919
# originName -> underscoreName
2020
# my-pkg -> my-pkg
@@ -23,7 +23,7 @@ runs:
2323
# 原始名称
2424
echo "N1=${{ steps.pkg.outputs.name }}" >> $GITHUB_ENV
2525
# 删除 @ 开头
26-
echo "N2=${$N1/@/}" >> $GITHUB_ENV
26+
echo "N2=${N1/@/}" >> $GITHUB_ENV
2727
# 将 / 替换为 __
2828
echo "N3=${N2/\//__}" >> $GITHUB_ENV
2929
echo "origin=$N1" >> "$GITHUB_OUTPUT"
@@ -56,5 +56,5 @@ runs:
5656
with:
5757
data: |
5858
{
59-
"name": "@${{ github.repository_owner }}/${{ steps.name.outputs.underscore }}"
59+
"name": "@${{ github.repository_owner }}/${{ steps.naming.outputs.underscore }}"
6060
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)