diff --git a/.github/workflows/plugin-ci.yaml b/.github/workflows/plugin-ci.yaml index 175c280..dad97fe 100644 --- a/.github/workflows/plugin-ci.yaml +++ b/.github/workflows/plugin-ci.yaml @@ -12,13 +12,18 @@ on: jobs: ci: runs-on: local-ubuntu-latest - container: node:${{ inputs.node-version }} timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: ${{ inputs.node-version }} + cache: 'npm' + - name: Install dependencies run: npm ci diff --git a/.github/workflows/plugin-release.yaml b/.github/workflows/plugin-release.yaml index 84defd4..c852162 100644 --- a/.github/workflows/plugin-release.yaml +++ b/.github/workflows/plugin-release.yaml @@ -133,10 +133,10 @@ jobs: run: | VERSION="${{ inputs.version }}" BRANCH="release/v${VERSION}" + git checkout -b "$BRANCH" git add package.json package-lock.json artifacthub-pkg.yml git commit -m "release: v${VERSION}" git tag "v${VERSION}" - git checkout -b "$BRANCH" git push origin "$BRANCH" --tags - name: Install GitHub CLI