vitest/.github/workflows/release.yml
2021-12-20 18:47:39 +08:00

37 lines
774 B
YAML

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6.23.5
- name: Set node version to v16
uses: actions/setup-node@v2
with:
node-version: 16
cache: "pnpm"
# - run: pnpm i -g @antfu/ni
# - run: nci
# - run: nr test --if-present
# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npx conventional-github-releaser -p angular
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}