Skip to content

publish

publish #13

Workflow file for this run

name: publish
on:
workflow_dispatch:
inputs:
version:
description: 'version'
required: true
type: string
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 23.7
- run: pnpm install --frozen-lockfile
- name: 'set environments'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: 'publish to github'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm release-it ${{ github.event.inputs.version }} --ci
- name: Tag new target
run: git tag -f latest ${{ github.event.inputs.version }}
- name: Push new tag
run: git push origin latest --force