Skip to content

v1.12.6

v1.12.6 #45

Workflow file for this run

name: Publish on Release
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: master
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
- name: Get Release Tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Cache Node.js modules
uses: actions/cache@v3
id: cache-npm
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Pnpm install
run: pnpm recursive install --frozen-lockfile --strict-peer-dependencies
- name: Build
run: pnpm build
- name: Set git user
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Set version ${{ env.tag }}
run: |
pnpm version ${{ env.tag }}
git push
- name: Publish
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}