Skip to content

v3.0.2

v3.0.2 #3

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@v3
- uses: pnpm/action-setup@v2
- name: Use Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile
- name: Build 🔨
run: pnpm build
- name: Set version to release tag 📝
run: pnpm version from-git --no-commit-hooks --no-git-tag-version
- name: Publish 🚀
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- 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