You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with your action where it is not detecting the package.json within a subdirectory, e.g. backend/package.json.
Here is the action in question:
name: "Backend: Build"on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latestdefaults:
run:
shell: bashworking-directory: backend ### Note thisoutputs:
store-path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}steps:
- uses: actions/checkout@v4with:
fetch-depth: 0submodules: true
- name: List all files in the working directoryrun: ls -la
- name: Calculate the new versionid: versionuses: phips28/gh-action-bump-version@masterenv:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:
target-branch: mainskip-commit: 'true'skip-tag: 'true'skip-push: 'true'tag-prefix: 'backend-'
The file backend/package.json does exist, the ls -la step outputs this:
>Run ls -la
total 148
drwxr-xr-x 5 runner docker 4096 Nov 2 11:40 .
drwxr-xr-x 7 runner docker 4096 Nov 2 11:40 ..
-rw-r--r-- 1 runner docker 771 Nov 2 11:40 package.json
-rw-r--r-- 1 runner docker 68455 Nov 2 11:40 pnpm-lock.yaml
I have tried supplying PACAKGEJSON_DIR: backend in the with as suggested by your documentation. It would be nice to know what directory it is checking in the error output to avoid confusion, as I've tried both with and without PACKAGEJSON_DIR and I have no idea which directory it's actually checking.
The text was updated successfully, but these errors were encountered:
Maelstromeous
changed the title
Package.json could not be found
package.json within a subdirectory could not be found
Nov 2, 2024
Hello,
I have an issue with your action where it is not detecting the package.json within a subdirectory, e.g.
backend/package.json
.Here is the action in question:
The file
backend/package.json
does exist, the ls -la step outputs this:I have tried supplying
PACAKGEJSON_DIR: backend
in thewith
as suggested by your documentation. It would be nice to know what directory it is checking in the error output to avoid confusion, as I've tried both with and withoutPACKAGEJSON_DIR
and I have no idea which directory it's actually checking.The text was updated successfully, but these errors were encountered: