Skip to content

Publish npm package #11

Publish npm package

Publish npm package #11

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
node-version: lts/*
cache-dependency-path: ${{ env.rootDir }}/package-lock.json
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{vars.npm_token}}