chore: release v1.0.1 #9
Workflow file for this run
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: 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 }} |