Skip to content

Commit

Permalink
bring back key inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 29, 2024
1 parent c9e2500 commit e133667
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/actions/setup_node/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: 'Setup Node.js'
description: 'Sets up Node.js environment and gets Node version from package.json'
inputs:
node-auth-token:
description: 'NPM authentication token'
required: false
registry-url:
description: 'NPM registry URL'
required: false
outputs:
node-version:
description: 'The Node.js version from package.json'
Expand All @@ -16,4 +23,7 @@ runs:
- uses: actions/setup-node@v4
with:
registry-url: ${{ inputs.registry-url }}
node-version: ${{ steps.get-version.outputs.version }}
env:
NODE_AUTH_TOKEN: ${{ inputs.node-auth-token }}
3 changes: 1 addition & 2 deletions .github/workflows/release_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:
- uses: ./.github/actions/setup_node
with:
registry-url: https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
node-auth-token: ${{ secrets.NPM_TOKEN }}

- uses: ./.github/actions/setup_dfx

Expand Down

0 comments on commit e133667

Please sign in to comment.