Skip to content

v2.2.3

v2.2.3 #62

Workflow file for this run

name: Publish NPM Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile
- run: pnpm package:build
- run: |
cd packages/nextjs-routes
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
npm publish --tag next
else
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}