Skip to content

Commit a20e918

Browse files
committed
do not set registry url by default
1 parent fe6b620 commit a20e918

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/.hatch-run.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ on:
1717
required: false
1818
type: string
1919
default: '["3.x"]'
20-
uses-secrets:
21-
type: boolean
22-
default: false
20+
node-registry-url:
21+
required: false
22+
type: string
23+
default: ""
2324
secrets:
2425
node-auth-token:
2526
required: false
@@ -39,14 +40,9 @@ jobs:
3940
steps:
4041
- uses: actions/checkout@v2
4142
- uses: actions/setup-node@v2
42-
if: ${{ inputs.uses-secrets }}}
43-
with:
44-
node-version: "14.x"
45-
registry-url: "https://registry.npmjs.org"
46-
- uses: actions/setup-node@v2
47-
if: ${{ inputs.uses-secrets }}}
4843
with:
4944
node-version: "14.x"
45+
registry-url: ${{ inputs.node-registry-url }}
5046
- name: Pin NPM Version
5147
run: npm install -g [email protected]
5248
- name: Use Python ${{ matrix.python-version }}

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
job-name: "publish"
1515
hatch-run: "publish"
16-
uses-secrets: true
16+
node-registry-url: "https://registry.npmjs.org"
1717
secrets:
1818
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
1919
pypi-username: ${{ secrets.PYPI_USERNAME }}

0 commit comments

Comments
 (0)