Skip to content

Release library

Release library #19

Workflow file for this run

name: Release library
on:
workflow_dispatch:
inputs:
dryRun:
description: Dry run
type: boolean
required: true
default: false
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🏗 Setup node
uses: ./.github/actions/setup-node
with:
install: true
- name: 🔨 Build package
run: pnpm build:ci
- name: 🚀 Release library
if: ${{ !inputs.dryRun }}
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 📖 Release library in dry run mode
if: ${{ inputs.dryRun }}
run: pnpm release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}