Skip to content

chore: release v1.8.1 #1

chore: release v1.8.1

chore: release v1.8.1 #1

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
jobs:
publish:
if: github.repository == 'vitest-dev/ivya'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
environment: Release
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
package-manager-cache: false
- run: pnpm install --frozen-lockfile --prefer-offline
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
- run: pnpm build
- name: Publish to npm
run: |
releaseTag=$([[ $GITHUB_REF_NAME =~ beta ]] && echo "beta" || echo "latest")
pnpm publish --access public --no-git-checks --tag $releaseTag
- run: pnpm exec changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}