Skip to content

v2.3.0

v2.3.0 #2

Workflow file for this run

name: 🚀 Publish
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Install Dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Build
run: pnpm build
- name: 📝 Version
env:
TAG_NAME: ${{ github.event.release.tag_name }}
run: pnpm version ${TAG_NAME} --no-git-tag-version
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
- name: 🐙 Publish
run: |
pnpm publish --no-git-checks --access=public