From a20e9183ab1af534b2eed84462fcbe9024707424 Mon Sep 17 00:00:00 2001 From: rmorshea Date: Sat, 3 Jun 2023 12:29:43 -0600 Subject: [PATCH] do not set registry url by default --- .github/workflows/.hatch-run.yml | 14 +++++--------- .github/workflows/publish.yml | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/.hatch-run.yml b/.github/workflows/.hatch-run.yml index 3d267be3a..2e55b8aec 100644 --- a/.github/workflows/.hatch-run.yml +++ b/.github/workflows/.hatch-run.yml @@ -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 @@ -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 npm@8.19.3 - name: Use Python ${{ matrix.python-version }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0a283275..e9271cbd5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}