Skip to content

chore: release v1.0.2 #10

chore: release v1.0.2

chore: release v1.0.2 #10

Workflow file for this run

name: Publish Package To Npmjs
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "coderhyh"
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: "8.x"
- uses: actions/[email protected]
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org/"
cache: pnpm
- name: ⏳ Install dependencies
run: pnpm i
- name: 👷 Build lib
run: pnpm run build
- name: 📦 Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}