Skip to content

chore: bump version to 1.0.24 #57

chore: bump version to 1.0.24

chore: bump version to 1.0.24 #57

Workflow file for this run

name: Release to npm
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build package
run: pnpm build
- name: Verify build output
run: |
echo "Checking build output..."
ls -la dist/
if [ ! -f dist/index.js ]; then
echo "Main entry not found"
exit 1
fi
if [ ! -f dist/index.d.ts ]; then
echo "Type definitions not found"
exit 1
fi
echo "Build output OK"
- name: Publish to npm
run: npm publish --provenance
- name: Extract version from tag
id: get_version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body: |
## Release ${{ steps.get_version.outputs.version }}
See [CHANGELOG.md](https://github.com/2234839/vite-plugin-pilot/blob/main/CHANGELOG.md) for details.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}