Skip to content

Merge pull request #77 from kaishens-cn/release-please--branches--mai… #38

Merge pull request #77 from kaishens-cn/release-please--branches--mai…

Merge pull request #77 from kaishens-cn/release-please--branches--mai… #38

Workflow file for this run

name: npm Push
on:
push:
tags:
- 'v*'
jobs:
build-push:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: |
pnpm build
- name: Publish to npm
run: |
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}