Skip to content

Commit

Permalink
pass down NODE_AUTH_TOKEN if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lukerollans committed Sep 25, 2023
1 parent 55ce255 commit 0eccc6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,21 @@ runs:

- name: Setup node
uses: actions/setup-node@v3
if: ${{ env.NODE_AUTH_TOKEN == '' }}
with:
cache: 'pnpm'
node-version: ${{ inputs.node-version }}
env:
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}

- name: Setup node (with auth token)
uses: actions/setup-node@v3
if: ${{ env.NODE_AUTH_TOKEN != '' }}
with:
cache: 'pnpm'
node-version: ${{ inputs.node-version }}
env:
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}

- name: Cache modules
uses: actions/cache@v3
Expand Down

0 comments on commit 0eccc6c

Please sign in to comment.