Skip to content

1.0.1

1.0.1 #16

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:
- name: Checkout code
uses: actions/checkout@v4
- name: Copy README file to package directory
run: |
cp README.md ${{ env.rootDir }}
- uses: actions/setup-node@v4
with:
cache: npm
node-version: lts/*
cache-dependency-path: ${{ env.rootDir }}/package-lock.json
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}