Skip to content

Commit 60a8953

Browse files
authored
1 parent cf1a4e4 commit 60a8953

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,23 @@ jobs:
4646
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4747
publish-github:
4848
name: Publish to GitHub Packages
49-
runs-on: ubuntu-latest
50-
permissions:
49+
runs-on: ubuntu-latest
50+
permissions:
5151
contents: read
5252
packages: write
5353
steps:
5454
- uses: actions/checkout@v3
5555
- uses: actions/setup-node@v3
5656
with:
5757
node-version: 18
58-
registry-url: https://registry.npmjs.org/
58+
registry-url: https://npm.pkg.github.com
5959
cache: npm
60+
scope: '@github'
6061
- run: npm ci
6162
- run: npm test
6263
- run: npm version ${TAG_NAME} --git-tag-version=false
6364
env:
6465
TAG_NAME: ${{ github.event.release.tag_name }}
65-
- run: npm whoami --registry=https://npm.pkg.github.com; npm --ignore-scripts publish --access public --registry=https://npm.pkg.github.com
66+
- run: npm --ignore-scripts publish --access public
6667
env:
6768
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)