添加显示文章分类;添加只审题解按钮;release 0.6.0 #14
This file contains hidden or 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: Build Userscript | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install --frozen-lockfile | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # if needed | |
- name: Build | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: build | |
- name: Rename artifact | |
run: cp dist/main.user.js /tmp/lg-admin-extend.user.js | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4.3.6 | |
with: | |
name: lg-admin-extend | |
path: /tmp/lg-admin-extend.user.js |