Skip to content

🚀 Release v4.2.1 #56

🚀 Release v4.2.1

🚀 Release v4.2.1 #56

Workflow file for this run

name: Publish
on:
pull_request:
branches:
- main
types:
- closed
jobs:
build-and-publish:
if: contains(github.head_ref, 'release/') && contains(github.base_ref, 'main') && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 22 ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.7.0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build and Publish to NPM
run: pnpm publish:lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}