chore(deps): npm Lock file maintenance (#6124) #5451
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish UI Components | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: false | |
| env: | |
| # renovate: datasource=npm depName=pnpm versioning=npm | |
| PNPM_VERSION: '10.26.1' | |
| jobs: | |
| skip-check: | |
| name: Skip check | |
| continue-on-error: true | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| outputs: | |
| should_skip: ${{ steps.skip-check.outputs.should_skip }} | |
| permissions: | |
| actions: write | |
| contents: read | |
| steps: | |
| - id: skip-check | |
| uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | |
| with: | |
| do_not_skip: '["schedule", "workflow_dispatch"]' | |
| paths: |- | |
| [ | |
| ".node-version", | |
| "ui/**" | |
| ] | |
| skip_after_successful_duplicate: false | |
| publish-ui-components: | |
| name: Publish UI components to NPM | |
| needs: skip-check | |
| if: ${{ needs.skip-check.outputs.should_skip != 'true' }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_PAT_UI }} | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| fetch-depth: "0" | |
| token: ${{ secrets.GH_PAT_UI }} | |
| - name: Pull all tags for Lerna semantic release | |
| run: | | |
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* && \ | |
| git fetch origin +refs/heads/main:refs/remotes/origin/main && \ | |
| git checkout main | |
| - uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version-file: .node-version | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'pnpm' | |
| cache-dependency-path: ui/pnpm-lock.yaml | |
| - name: Config git user | |
| run: | | |
| git config --global user.name "${{ github.actor }}" | |
| git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
| - name: Install packages with pnpm | |
| working-directory: ui | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Packages | |
| working-directory: ui | |
| run: pnpm run build | |
| - name: Bump versions and publish packages | |
| working-directory: ui | |
| run: pnpm run publish:ci | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT_UI }} |