Skip to content

"type": "module" 下, 不存在require, 导致报错误 (#96) #58

"type": "module" 下, 不存在require, 导致报错误 (#96)

"type": "module" 下, 不存在require, 导致报错误 (#96) #58

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 16
uses: actions/setup-node@v1
with:
registry-url: https://registry.npmjs.org/
node-version: 16
- 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}}