Skip to content

chore: bump version to 0.1.0-alpha.3 #6

chore: bump version to 0.1.0-alpha.3

chore: bump version to 0.1.0-alpha.3 #6

Workflow file for this run

# .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 }}