Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

chore: release v0.1.2 #5

chore: release v0.1.2

chore: release v0.1.2 #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm
- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test
- name: Config npm
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: pnpm -r publish --access public --no-git-checks