Skip to content

Release

Release #19

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
manual:
description: Manually trigger regular release?
default: regular
required: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 30
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- working-directory: 'dist'
run: |
ls -l
- name: Publish to npm
uses: tobua/release-npm-action@v3
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
MANUAL_TRIGGER: ${{ github.event.inputs.manual }}