Skip to content

ci: release command #32

ci: release command

ci: release command #32

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
tag-release:
runs-on: ubuntu-latest
steps:
- uses: Roang-zero1/github-create-release-action@master
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
npm-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v2
with:
cache: 'pnpm'
- run: pnpm install
- run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- run: pnpm -r publish --access=public --no-git-checks
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}