diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abda849..a3897be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,16 +20,20 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: Setup pnpm - uses: pnpm/action-setup@v3.0.0 - with: - run_install: pnpm install - - run: pnpm test + cache: 'pnpm' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm test env: MOONSHOT_API_KEY: ${{ secrets.MOONSHOT_API_KEY }}