fix: 修正插件配置选项中ignore的函数形式的处理逻辑 (#128) #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |