Skip to content

Publish

Publish #1

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/composite-actions/install
- name: lint
run: pnpm -r lint
- name: type-check
run: pnpm -r type-check
- name: prettier
run: pnpm prettier -c .
- name: build
run: pnpm -r build
- run: pnpm --filter @vercel/speed-insights publish --tag beta --no-git-checks
if: github.event.release.prerelease == true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
- run: pnpm --filter @vercel/speed-insights publish --no-git-checks
if: github.event.release.prerelease == false
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}