Skip to content

chore: Bump version to 1.3.19 #33

chore: Bump version to 1.3.19

chore: Bump version to 1.3.19 #33

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Extract version from tag
id: tag_version
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Tag version: $VERSION"
- name: Verify version matches package.json
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
TAG_VERSION="${{ steps.tag_version.outputs.version }}"
echo "Package version: $PACKAGE_VERSION"
echo "Tag version: $TAG_VERSION"
if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
echo "❌ Version mismatch: package.json=$PACKAGE_VERSION, tag=$TAG_VERSION"
exit 1
fi
echo "✅ Version match: $PACKAGE_VERSION"
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ steps.tag_version.outputs.version }}
body: |
## 🚀 Version ${{ steps.tag_version.outputs.version }}
Published automatically from GitHub Actions.
### 📦 Installation
```bash
npm install vako@${{ steps.tag_version.outputs.version }}
```
### 🔗 Links
- [npm package](https://www.npmjs.com/package/vako)
- [GitHub repository](https://github.com/sdevfr/vako)
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}