Skip to content

Commit

Permalink
do not set registry url by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Jun 3, 2023
1 parent fe6b620 commit a20e918
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/.hatch-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ on:
required: false
type: string
default: '["3.x"]'
uses-secrets:
type: boolean
default: false
node-registry-url:
required: false
type: string
default: ""
secrets:
node-auth-token:
required: false
Expand All @@ -39,14 +40,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
if: ${{ inputs.uses-secrets }}}
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- uses: actions/setup-node@v2
if: ${{ inputs.uses-secrets }}}
with:
node-version: "14.x"
registry-url: ${{ inputs.node-registry-url }}
- name: Pin NPM Version
run: npm install -g [email protected]
- name: Use Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
job-name: "publish"
hatch-run: "publish"
uses-secrets: true
node-registry-url: "https://registry.npmjs.org"
secrets:
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
pypi-username: ${{ secrets.PYPI_USERNAME }}
Expand Down

0 comments on commit a20e918

Please sign in to comment.