feat: improve element inspector copy and modifier key handling #52
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |