Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
AyronK committed Oct 2, 2024
1 parent 92a6984 commit 5afed72
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ on:
types: [created]
workflow_dispatch:

env:
rootDir: ./packages/nextjs-cache-handler

jobs:
publish-npm:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./packages/nextjs-cache-handler
working-directory: ${{ env.rootDir }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
cache: npm
node-version: lts/*
cache-dependency-path: ${{ env.rootDir }}/package-lock.json
- run: npm i
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 5afed72

Please sign in to comment.