Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/setup-node-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
cache:
description: Restore the npm cache before installing dependencies
default: "true"
firewall-token:
description: Auth token for the DepthFirst dependency firewall npm registry; only pass this where the secret is guaranteed available (no pull_request trigger)
default: ""

runs:
using: composite
Expand All @@ -26,6 +29,7 @@ runs:
uses: ./.github/actions/setup-node-npm
with:
node-version: ${{ inputs.node-version }}
firewall-token: ${{ inputs.firewall-token }}

- name: Install dependencies
shell: bash
Expand Down
15 changes: 15 additions & 0 deletions .github/actions/setup-node-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,25 @@ inputs:
node-version:
description: Node.js version passed to actions/setup-node
default: "24"
firewall-token:
description: Auth token for the DepthFirst dependency firewall npm registry; only pass this where the secret is guaranteed available (no pull_request trigger)
default: ""

runs:
using: composite
steps:
- name: Configure DepthFirst dependency firewall
shell: bash
env:
FIREWALL_TOKEN: ${{ inputs.firewall-token }}
run: |
if [ -n "$FIREWALL_TOKEN" ]; then
{
echo "registry=https://firewall.depthfirst.com/npm/"
echo "//firewall.depthfirst.com/npm/:_authToken=${FIREWALL_TOKEN}"
} >> ~/.npmrc
fi

- name: Set up Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: ./.github/actions/setup-node-dependencies
with:
cache: "false"
firewall-token: ${{ secrets.DF_FIREWALL_TOKEN }}
Comment thread
staaldraad marked this conversation as resolved.

- name: Semantic Release
id: semantic
Expand Down