Skip to content

v13.9.0

v13.9.0 #3

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
npm:
name: NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Determine NPM tag
id: npm-tag
run: |
version="${{ github.ref_name }}"
major_version=$(echo "$version" | cut -d. -f1)
if [ "$major_version" = "v13" ]; then
echo "tag=legacy" >> $GITHUB_ENV
else
echo "tag=latest" >> $GITHUB_ENV
fi
- name: Publish to NPM
run: npm publish --tag ${{ env.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}