Skip to content

🚀 Release v4.0.0 #45

🚀 Release v4.0.0

🚀 Release v4.0.0 #45

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: [ 20 ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9.1.1
- 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 }}