fix: placeholder size and visibility #8
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
| # .github/workflows/release.yml | |
| name: Release to npm | |
| on: | |
| push: | |
| tags: | |
| - "v*" # Triggers on v0.1.0, v0.1.0-alpha.1, etc. | |
| jobs: | |
| release: | |
| name: Publish nuxt-freeform to npm | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.11.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build nuxt-freeform | |
| run: pnpm --filter nuxt-freeform build | |
| - name: Extract version | |
| id: version | |
| run: | | |
| VERSION=$(node -p "require('./packages/nuxt-freeform/package.json').version") | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "📦 Releasing nuxt-freeform v$VERSION" | |
| - name: Publish to npm | |
| working-directory: packages/nuxt-freeform | |
| run: | | |
| echo "Publishing nuxt-freeform@${{ steps.version.outputs.version }}" | |
| pnpm publish --access public --no-git-checks | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Create GitHub Release | |
| run: | | |
| gh release create "${{ github.ref_name }}" \ | |
| --title "nuxt-freeform ${{ steps.version.outputs.version }}" \ | |
| --generate-notes \ | |
| --latest | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |