Skip to content

v1.8.0

v1.8.0 #20

Workflow file for this run

name: publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2.2.1
with:
version: 7
- uses: actions/cache@v3
id: pnpm-cache
with:
path: |
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
- run: cp ./README.md ./packages/text-vide/README.md && cd ./packages/text-vide && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}