fix: remove Docker container from CI, use setup-node instead
Eliminates Docker Hub rate limit by replacing container: node:22 with setup-node@v4. Also fixes release workflow branch creation order. Closes privilegedescalation/.github#14 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
committed by
GitHub
parent
e97fee87af
commit
d0b4428af7
@@ -12,13 +12,18 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: local-ubuntu-latest
|
runs-on: local-ubuntu-latest
|
||||||
container: node:${{ inputs.node-version }}
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ inputs.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
|||||||
@@ -133,10 +133,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.version }}"
|
VERSION="${{ inputs.version }}"
|
||||||
BRANCH="release/v${VERSION}"
|
BRANCH="release/v${VERSION}"
|
||||||
|
git checkout -b "$BRANCH"
|
||||||
git add package.json package-lock.json artifacthub-pkg.yml
|
git add package.json package-lock.json artifacthub-pkg.yml
|
||||||
git commit -m "release: v${VERSION}"
|
git commit -m "release: v${VERSION}"
|
||||||
git tag "v${VERSION}"
|
git tag "v${VERSION}"
|
||||||
git checkout -b "$BRANCH"
|
|
||||||
git push origin "$BRANCH" --tags
|
git push origin "$BRANCH" --tags
|
||||||
|
|
||||||
- name: Install GitHub CLI
|
- name: Install GitHub CLI
|
||||||
|
|||||||
Reference in New Issue
Block a user