Skip to content

Commit

Permalink
ci(workflows): [publish] cleanup registry scope
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Jan 8, 2023
1 parent 38018a8 commit abf0f12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ on:
env:
ARTIFACT: |
${{ github.event.inputs.artifact || github.event.release.assets[0].browser_download_url }}
SCOPE: ${{ format('@{0}', github.repository_owner) }}
TAG: ${{ github.event.inputs.tag || github.event.release.tag_name }}
jobs:
metadata:
Expand Down Expand Up @@ -76,7 +75,7 @@ jobs:
always-auth: true
node-version-file: .nvmrc
registry-url: https://npm.pkg.github.com
scope: ${{ env.SCOPE }}
scope: ${{ github.repository_owner }}
- id: publish
name: Publish package
run: npm publish $ARTIFACT ${{ needs.metadata.outputs.dist-tag }}
Expand All @@ -103,7 +102,7 @@ jobs:
always-auth: true
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
scope: ${{ env.SCOPE }}
scope: ${{ github.repository_owner }}
- id: publish
name: Publish package
run: npm publish $ARTIFACT ${{ needs.metadata.outputs.dist-tag }}
Expand Down

0 comments on commit abf0f12

Please sign in to comment.