Skip to content

chore: release v0.0.1 #1

chore: release v0.0.1

chore: release v0.0.1 #1

Workflow file for this run

name: release
permissions:
contents: write
on:
push:
tags:
- "v*"
jobs:
release:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org/"
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Build
run: pnpm build
- name: Publish ${{ env.GITHUB_REF_NAME }}
run: |
if [[ $GITHUB_REF_NAME == *-* ]]; then
TAG=${GITHUB_REF_NAME#*-}
TAG=${TAG%.*}
pnpm publish --access public --no-git-checks --tag ${TAG}
else
pnpm publish --access public --no-git-checks
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.RELEASE_NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}