ProIcons v4.13.4 #33
Workflow file for this run
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 packages to NPM | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Version | |
| type: string | |
| required: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| env: | |
| VERSION: ${{github.event.release.tag_name || inputs.version}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| registries: '@proicons:https://registry.npmjs.org' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| registry-url: 'https://registry.npmjs.org' | |
| scope: '@proicons' | |
| - name: Install dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: Bump version | |
| run: | | |
| bash ./bin/bumpVersion.sh $VERSION | |
| - name: Build packages | |
| run: | | |
| pnpm --filter './packages/*' run ci | |
| - name: Publish to NPM | |
| run: | | |
| pnpm --filter './packages/*' publish --no-git-checks |