Skip to content

Publish npm package

Publish npm package #9

Workflow file for this run

name: Publish npm package
on:
release:
types: [created]
workflow_dispatch:
env:
rootDir: ./packages/nextjs-cache-handler
jobs:
publish-npm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.rootDir }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
check-latest: true
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}