Skip to content

Publish npm package

Publish npm package #7

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

Check failure on line 20 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / Publish npm package

Invalid workflow file

The workflow is not valid. .github/workflows/npm-publish.yml (Line: 20, Col: 9): 'uses' is already defined
with:
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}}