Skip to content

Merge pull request #50 from fzq1998/patch-1 #53

Merge pull request #50 from fzq1998/patch-1

Merge pull request #50 from fzq1998/patch-1 #53

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: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.28.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Publish to NPM
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}