fix: ci test #6
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 to NPM | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v1.*' | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
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 | |
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 }} | |