Skip to content

9.1.1

9.1.1 #125

Workflow file for this run

name: publish
on:
push:
branches:
- '*'
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- uses: volta-cli/action@v1
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- run: pnpm lint
publish-npm:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- uses: volta-cli/action@v1
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- run: pnpm build
- run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
pnpm package
pnpm publish ./package