Skip to content

v3.18.0

v3.18.0 #9

Workflow file for this run

name: Release to NPM
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Use Node.js LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: yarn
- name: Install dependencies 📦️
run: yarn install --immutable
- name: Build 🔨
run: yarn build
- name: Publish 🚀
run: yarn publish --non-interactive --new-version ${TAG#v} --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
- name: Push version changes to main branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: release ${{ github.event.release.tag_name }}"
branch: main
file_pattern: package.json