ci: remove Docker container from release workflow

Remove container: node from the release job to avoid Docker Hub rate
limits on self-hosted runners. Uses actions/setup-node@v4 instead,
matching the pattern already applied in plugin-ci.yaml (PR#14).

Changes:
- Remove container: node:${{ inputs.node-version }}
- Add setup-node@v4 step with npm cache after checkout
- Remove apt-get install step (jq, curl, git already on runner)
- Remove manual GitHub CLI install step (gh already on runner)

Co-authored-by: Hugh Hackman <hugh@privilegedescalation.com>
Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
hugh-hackman[bot]
2026-03-16 10:52:05 +00:00
committed by GitHub
parent d0b4428af7
commit 510569be7b
+6 -12
View File
@@ -35,7 +35,6 @@ jobs:
release:
needs: ci
runs-on: local-ubuntu-latest
container: node:${{ inputs.node-version }}
timeout-minutes: 10
steps:
@@ -51,6 +50,12 @@ jobs:
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'
- name: Check tag does not already exist
run: |
if git tag -l "v${{ inputs.version }}" | grep -q "v${{ inputs.version }}"; then
@@ -58,10 +63,6 @@ jobs:
exit 1
fi
- name: Install required tools
run: |
apt-get update && apt-get install -y jq curl git
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
@@ -139,13 +140,6 @@ jobs:
git tag "v${VERSION}"
git push origin "$BRANCH" --tags
- name: Install GitHub CLI
run: |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
apt-get update && apt-get install gh -y
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with: