This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
Merge pull request #103 from MichaelYuhe/MichaelYuhe-patch-1 #179
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
- name: Lint | |
run: nr style | |
- name: Type check | |
run: nr typecheck | |
- name: Build | |
run: nr build | |
- name: zip bundle file | |
run: zip -r ai-group-tabs.zip dist/ | |
- name: Upload package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ai-group-tabs | |
path: ai-group-tabs.zip | |
retention-days: 5 |