Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nested directories in "NPM Publish package" #98

Merged
merged 3 commits into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/npm-publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ on:
required: false
type: string
default: '22.x'
cacheDependencyPath:
description: |
Node cache dependency path. It's required only if package-lock.json is not in the root.
required: false
type: string
default: ''
workingDirectory:
description: |
Set working directory if your package is not in the root.
required: false
type: string
default: '.'
packageVersion:
description: |
Released packaged version
Expand All @@ -25,17 +37,21 @@ on:
secrets:
NPM_TOKEN:
description: |
NPM toke
Used to perform authenticated operation against NPM registry
required: true

jobs:
publish-package:
name: Publish Package
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.workingDirectory }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache-dependency-path: ${{ inputs.cacheDependencyPath }}
node-version: ${{ inputs.nodeVersion }}
registry-url: 'https://registry.npmjs.org'
- name: Clean Install
Expand Down
Loading