Skip to content

Update publish.yml

Update publish.yml #67

Workflow file for this run

name: Npm Publish
on:
push:
branches:
- main
jobs:
publish-npm:
if: "contains(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: use Node.js 20
uses: actions/setup-node@v1
with:
registry-url: https://registry.npmjs.org/
node-version: 20
- name: pnpm install and publish
run: |
npm i -g pnpm
pnpm install
pnpm publish --filter=./packages/vite-plugin-mock
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}