From 2b095092899d9d9584e1af12c856f80e1b168139 Mon Sep 17 00:00:00 2001 From: JOY <5027251+JOY@users.noreply.github.com> Date: Mon, 3 Aug 2026 21:46:17 +0700 Subject: [PATCH] ci: remove obsolete Blockscout NPM publisher --- .github/workflows/toolkit-npm-publisher.yml | 68 --------------------- 1 file changed, 68 deletions(-) delete mode 100644 .github/workflows/toolkit-npm-publisher.yml diff --git a/.github/workflows/toolkit-npm-publisher.yml b/.github/workflows/toolkit-npm-publisher.yml deleted file mode 100644 index ff17bcf995..0000000000 --- a/.github/workflows/toolkit-npm-publisher.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Publish toolkit package to NPM - -on: - workflow_dispatch: - inputs: - version: - description: Package version - type: string - required: true - workflow_call: - inputs: - version: - description: Package version - type: string - required: true - -jobs: - publish: - runs-on: ubuntu-latest - name: Publish package to NPM registry - permissions: - id-token: write - contents: read - - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 11.5.1 - - # Also it will setup .npmrc file to publish to npm - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: '22.14.0' - registry-url: 'https://registry.npmjs.org' - cache: 'pnpm' - - # Ensure npm 11.5.1 is installed - - name: Update npm - run: npm install -g npm@11.5.1 - - - name: Update package version - run: | - cd ./src/toolkit/package - npm version ${{ inputs.version }} - - - name: Install dependencies and build the package - run: | - pnpm install --frozen-lockfile - pnpm --filter @blockscout/ui-toolkit build - - - name: Publish to NPM registry - run: | - cd ./src/toolkit/package - # Determine npm tag based on version - if [[ "${{ inputs.version }}" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - # Stable release (e.g., 1.7.2 or v1.7.2) - npm publish --access public --tag latest - else - # Pre-release (e.g., 1.7.2-alpha.1 or v1.7.2-alpha.1) - npm publish --access public --tag beta - fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}