Skip to content

Commit

Permalink
try all of this
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 28, 2024
1 parent 26ee9ce commit fb0b14e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/actions/setup_node/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
name: 'Setup Node.js'
description: 'Sets up Node.js environment and gets Node version from package.json'

inputs:
working-directory:
description: 'Directory containing package.json'
required: false
default: '.'
registry-url:
description: 'Optional registry URL'
required: false
node-version-file:
description: 'File containing the version Spec'
required: false
default: 'package.json'
cache:
description: 'Used to specify a package manager for caching'
required: false
cache-dependency-path:
description: 'Path to package-lock.json file'
required: false
outputs:
node-version:
description: 'The Node.js version from package.json'
Expand All @@ -17,4 +34,8 @@ runs:
- uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org
registry-url: ${{ inputs.registry-url }}
node-version: ${{ steps.get-version.outputs.version }}
node-version-file: ${{ inputs.node-version-file }}
cache: ${{ inputs.cache }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}
2 changes: 2 additions & 0 deletions .github/workflows/release_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
echo "release-version=$RELEASE_VERSION" >> $GITHUB_OUTPUT
- uses: ./.github/actions/setup_node
with:
registry-url: https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit fb0b14e

Please sign in to comment.