Skip to content

doc: update readme.md #16

doc: update readme.md

doc: update readme.md #16

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- "v*"
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Install Pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm i
- name: Build:Utility
run: pnpm run build:util
- name: Build:ui
run: pnpm run build:ui
- name: Build
run: pnpm run build
- name: Copy Assets
run: npm run cp:assets
- name: Publish to NPM
run: npm publish
working-directory: release/hexo-theme-cosy
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}