-
Notifications
You must be signed in to change notification settings - Fork 83
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
npx NOENT error #24
Comments
I am also facing this - any ideas why? |
I have fixed my issue. @Tarang, perhaps the directory that you are trying to upload isn't present. Could you provide with details of your action? |
Pretty sure the directory is there, if i use s3 deploy directly it works fine |
Hi @Tarang, do you still have this issue? Cloud you paste your action workflow? |
Pretty much the example and just changing the folder to name: Example workflow for S3 Deploy
on: [push]
jobs:
run:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: dist
bucket: ${{ secrets.S3_BUCKET }}
bucket-region: ${{ secrets.S3_BUCKET_REGION }}
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /
delete-removed: true
no-cache: true
private: true Instead I am doing this to fix it - uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.S3_BUCKET_REGION }}
SOURCE_DIR: 'dist'
# Invalidate Cloudfront (this action)
- name: invalidate
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
PATHS: '/*'
AWS_REGION: ${{ secrets.S3_BUCKET_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
Don't you compile anything? Is the folder |
I compile it in the previous step I erased. But keep in mind the code i replace (in the previous post) works fine and it uses the dist folder. I also did try alot of debugging to see what was going on, i.e i added bash scripts to |
@Reggionick i have a Vuepress site which gets built using node (this works successfully) but then I get this error. I am trying to use your action to deploy to an S3 AccessPoint so I might indeed have some permission issues there but it would appear it's falling over before we get to that point. |
I've encountered this issue in a new project. I found out that the issue was due to a wrong path:
but it seems that the I haven't check in detail this, but is this scenario like yours? |
@Reggionick in your example what does "frontend" represent? Is that where the build assets are being built to? I have been setting the Having come back to this issue after a week or so I'm not sure if it's moved forward or backward but for me I no longer get the error regarding the execution of npx but instead get the error: So to be explicit, I setup an Identity step in my action which follows the build of the static assets and precedes me using your repo to push this to an S3 bucket. From this I have validated that indeed The error message refers to and thereby different from access patterns that point directly to the S3 bucket itself. Not sure if this could be causing the issue but I am able to access the bucket via the Access Point using Panic's Transmit application so the permissions to interact with the bucket are setup correctly. And now, to my great surprise, I can see that in fact this repo's code DID move the files over to the repo: and the error must have been thrown after the operation had succeeded. |
Ok, i'm now even more confused ... I had had set the I guess this must mean I had fat fingered the AWS_REGION secret in github ... not sure what else would explain it. Anyway, sorry for the red herring. |
Hi, thanks for giving this hint. I can confirm that it works. I have the same setup: Monorepo and a frontend folder that contains the build folder and I had the same issue with EOENT. |
I'm experiencing the same issue. I tried to change the folder but even in the correct path where the build asssets are, I get the npx error |
I keep getting this error
I'm a bit unsure what is causing it. I have copied and pasted the yaml on the README pretty much verbatim and used my credentials. I can see there is a related closed issue #13 but it was not resolved.
The text was updated successfully, but these errors were encountered: