Update ci.yml #4
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: CI | |
| on: | |
| [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '20' | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Set up pnpm global bin directory | |
| run: | | |
| pnpm setup | |
| export PNPM_HOME=$(pnpm config get PNPM_HOME) | |
| export PATH=$PNPM_HOME:$PATH | |
| - name: Install and build plugins | |
| run: | | |
| mkdir -p dist/plugins | |
| cd plugins | |
| for d in */ ; do | |
| cd "$d" | |
| pnpm install | |
| pnpm run build | |
| mv . ../../dist/plugins/"$d" | |
| cd .. | |
| done |