Skip to content

Commit b8279f9

Browse files
committed
publish using --registry only
1 parent 56472e8 commit b8279f9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,14 @@ jobs:
4444
fi
4545
env:
4646
VERSION: ${{ inputs.tag }}
47-
# Setup .npmrc file to publish to GitHub Packages
48-
- name: Configure node with GitHub Packages
47+
- name: Setup node
4948
uses: actions/setup-node@v4
5049
with:
5150
cache: yarn
5251
node-version: '16'
53-
registry-url: https://npm.pkg.github.com
5452
- run: yarn install --frozen-lockfile
5553
- name: Publish to GitHub Packages
56-
run: npm publish --provenance
54+
run: npm publish --provenance --registry=https://npm.pkg.github.com/
5755
env:
5856
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5957
- name: Publish to npmjs.org

.github/workflows/tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
with:
2222
cache: yarn
2323
node-version: '16'
24-
registry-url: https://npm.pkg.github.com
2524
- name: install dependencies
2625
run: yarn install --frozen-lockfile
2726
- name: lint markdown
@@ -31,6 +30,6 @@ jobs:
3130
- name: Set development version
3231
run: yarn version --no-git-tag-version --new-version "0.0.0-sha.${{ github.sha }}"
3332
- name: Publish development version
34-
run: npm publish --provenance
33+
run: npm publish --provenance --registry=https://npm.pkg.github.com/
3534
env:
3635
NODE_AUTH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)