Skip to content

Next.js 13 Web Vitals & React Server Components #692

Next.js 13 Web Vitals & React Server Components

Next.js 13 Web Vitals & React Server Components #692

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- "v*"
env:
AXIOM_TOKEN: ${{ secrets.TESTING_STAGING_E2E_TOKEN }}
AXIOM_URL: ${{ secrets.TESTING_STAGING_API_URL }}
AXIOM_ORG_ID: ${{ secrets.TESTING_STAGING_E2E_ORG_ID }}
AXIOM_DATASET_SUFFIX: ${{ github.run_id }}
PNPM_VERSION: 8.6.0
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 16.x
- 17.x
- 18.x
- 19.x
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint
unittests:
name: Check Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test
publish:
name: Publish
needs:
- build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint
- run: pnpm test
- run: pnpm publish --access public --filter "packages/**"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
- uses: softprops/action-gh-release@v1