diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 9d810db9..ebd09a30 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -12,34 +12,44 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Set up PNPM + uses: pnpm/action-setup@v3 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - cache: 'yarn' + cache: 'pnpm' node-version-file: 'package.json' - name: Install dependencies - run: yarn install --frozen-lockfile + run: pnpm install --frozen-lockfile + # - name: Lint project + # run: pnpm lint - name: Lint code - run: yarn lint:code + run: | + pnpm lint:code + pnpm lint:format - name: Check typings - run: yarn lint:typings + run: pnpm lint:typings + - name: Lint Markdown + run: pnpm lint:wiki tests: name: Tests runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Set up PNPM + uses: pnpm/action-setup@v3 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - cache: 'yarn' + cache: 'pnpm' node-version-file: 'package.json' - name: Install dependencies - run: yarn install --frozen-lockfile + run: pnpm install --frozen-lockfile - name: Run tests - run: yarn test:coverage --ci + run: pnpm test:coverage preview: name: Preview @@ -47,15 +57,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - cache: 'yarn' + cache: 'pnpm' node-version-file: 'package.json' - name: Set up Vercel run: | - yarn global add vercel@latest + npm install --global vercel@latest vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - name: Build run: vercel build --token=${{ secrets.VERCEL_TOKEN }} @@ -69,15 +79,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - cache: 'yarn' + cache: 'pnpm' node-version-file: 'package.json' - name: Set up Vercel run: | - yarn global add vercel@latest + npm install --global vercel@latest vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - name: Build run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}