Skip to content

v1.7.0

v1.7.0 #34

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@v3
with:
ref: master
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
# cache: "pnpm"
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 }}