From 7dfbd21bce9e5dea0210ab7dcd8ecbbd21e9ebdb Mon Sep 17 00:00:00 2001 From: Karsa Date: Tue, 24 Mar 2026 17:23:20 +0100 Subject: [PATCH] feat(pipeline): revert debug changes made to release.yml --- .github/workflows/release-angular.yml | 86 --------------------------- .github/workflows/release.yml | 55 ++--------------- 2 files changed, 5 insertions(+), 136 deletions(-) delete mode 100644 .github/workflows/release-angular.yml diff --git a/.github/workflows/release-angular.yml b/.github/workflows/release-angular.yml deleted file mode 100644 index 1ac7187b5..000000000 --- a/.github/workflows/release-angular.yml +++ /dev/null @@ -1,86 +0,0 @@ -name: Release Angular - -on: - workflow_dispatch: - inputs: - version: - description: Version - required: true - tag: - required: true - description: NPM tag - default: 'latest' - type: choice - options: - - latest - - next - - beta - - alpha - -permissions: - id-token: write # Required for OIDC - contents: write - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - -jobs: - prepare: - if: github.repository == 'lucide-icons/lucide' && contains('["ericfennis", "karsa-mistmere", "jguddas"]', github.actor) - runs-on: ubuntu-latest - outputs: - VERSION: ${{ steps.get_version.outputs.VERSION }} - - steps: - - name: Get the version - id: get_version - run: | - echo $VERSION_REF - echo "VERSION=${VERSION_REF/refs\/tags\/\v}" >> $GITHUB_OUTPUT - env: - VERSION_REF: ${{ inputs.version || github.event.inputs.version || github.ref }} - - release: - if: github.repository == 'lucide-icons/lucide' - runs-on: ubuntu-latest - needs: prepare - permissions: - id-token: write # Required for OIDC - contents: read - strategy: - fail-fast: false - matrix: - package: - [ - '@lucide/angular' - ] - steps: - - uses: actions/checkout@v6 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v6 - with: - cache: 'pnpm' - node-version-file: 'package.json' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Set new version - run: pnpm --fail-if-no-match --filter ${{ matrix.package }} version --new-version ${{ needs.prepare.outputs.VERSION }} --no-git-tag-version - - - name: Build - run: pnpm --filter ${{ matrix.package }} build - - - name: Debug - run: | - pwd - node -v - pnpm -v - ls -la packages/angular - ls -la packages/angular/dist || true - cat packages/angular/dist/package.json || true - - - name: Publish - run: pnpm --filter ${{ matrix.package }} publish --access public --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} - env: - NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8a1ac773..6896edeef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,17 +16,6 @@ on: default: 'latest' type: string - workflow_dispatch: - inputs: - version: - required: true - description: Version (e.g. 1.2.3 or v1.2.3) - type: string - tag: - description: NPM tag - default: 'next' - type: string - permissions: id-token: write # Required for OIDC contents: write @@ -75,53 +64,33 @@ jobs: ] steps: - uses: actions/checkout@v6 - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' - uses: pnpm/action-setup@v4 - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' - uses: actions/setup-node@v6 - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' with: cache: 'pnpm' node-version-file: 'package.json' - name: Install dependencies - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' run: pnpm install --frozen-lockfile - name: Set new version - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' run: pnpm --fail-if-no-match --filter ${{ matrix.package }} version --new-version ${{ needs.prepare.outputs.VERSION }} --no-git-tag-version - name: Build - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' run: pnpm --filter ${{ matrix.package }} build - - name: Debug - if: matrix.package == '@lucide/angular' - run: | - pwd - node -v - pnpm -v - ls -la packages/angular - ls -la packages/angular/dist || true - cat packages/angular/dist/package.json || true - - name: Test - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' run: pnpm --filter ${{ matrix.package }} test - name: Publish - if: github.event_name != 'workflow_dispatch' || matrix.package == '@lucide/angular' run: pnpm --filter ${{ matrix.package }} publish --access public --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} env: NPM_CONFIG_PROVENANCE: true lucide-static: - # revert to: - # if: github.repository == 'lucide-icons/lucide' - if: github.repository == 'lucide-icons/lucide' && github.event_name != 'workflow_dispatch' + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest - needs: [prepare, lucide-font] + needs: [ prepare, lucide-font ] permissions: id-token: write # Required for OIDC contents: read @@ -147,25 +116,13 @@ jobs: - name: Build run: pnpm --filter lucide-static build - - name: Debug - if: matrix.package == '@lucide-angular' - run: | - pwd - node -v - pnpm -v - ls -la packages/angular - ls -la packages/angular/dist || true - cat packages/angular/dist/package.json || true - - name: Publish run: pnpm --filter lucide-static publish --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} --access public env: NPM_CONFIG_PROVENANCE: true lucide-font: - # revert to: - # if: github.repository == 'lucide-icons/lucide' - if: github.repository == 'lucide-icons/lucide' && github.event_name != 'workflow_dispatch' + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest needs: prepare steps: @@ -191,11 +148,9 @@ jobs: path: lucide-font post-release: - # revert to: - # if: github.repository == 'lucide-icons/lucide' && github.event_name != 'workflow_call' - if: github.repository == 'lucide-icons/lucide' && github.event_name == 'push' + if: github.repository == 'lucide-icons/lucide' && github.event_name != 'workflow_call' runs-on: ubuntu-latest - needs: [prepare, lucide-font] + needs: [ prepare, lucide-font ] permissions: id-token: write # Required for OIDC contents: write