Skip to content

Release Packages

Release Packages #19

Workflow file for this run

name: Release Packages
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
main:
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install packages
run: pnpm install --frozen-lockfile --prefer-offline
- name: Lint packages
run: pnpm run lint
- name: Build packages
run: pnpm run build
- name: Publish packages
run: |
pnpm whoami
pnpm run release:ci ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Update changelog
run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}