Skip to content

Commit

Permalink
Merge pull request #99 from cloudcome/feat/v0.x
Browse files Browse the repository at this point in the history
Feat/v0.x
  • Loading branch information
cloudcome authored Mar 17, 2023
2 parents 6208deb + dd04a6a commit 83af74f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/actions/npm-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
steps:
- id: pkg
uses: jaywcjlove/github-action-package@main
- id: name
- id: naming
shell: bash
# originName -> underscoreName
# my-pkg -> my-pkg
Expand All @@ -23,7 +23,7 @@ runs:
# 原始名称
echo "N1=${{ steps.pkg.outputs.name }}" >> $GITHUB_ENV
# 删除 @ 开头
echo "N2=${$N1/@/}" >> $GITHUB_ENV
echo "N2=${N1/@/}" >> $GITHUB_ENV
# 将 / 替换为 __
echo "N3=${N2/\//__}" >> $GITHUB_ENV
echo "origin=$N1" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -56,5 +56,5 @@ runs:
with:
data: |
{
"name": "@${{ github.repository_owner }}/${{ steps.name.outputs.underscore }}"
"name": "@${{ github.repository_owner }}/${{ steps.naming.outputs.underscore }}"
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83af74f

Please sign in to comment.