JamesIves/github-pages-deploy-action

bug: ๐Ÿ File not found `v4/lib/main.js`

sebnitu opened this issue ยท 18 comments

Describe the bug

Currently getting this error when the deploy step is reached:

Run JamesIves/github-pages-deploy-action@v4
Error: File not found: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4/lib/main.js'

Reproduction Steps

image

Logs

##[debug]Evaluating condition for step: 'Deploy'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Deploy
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run JamesIves/github-pages-deploy-action@v4
Error: File not found: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4/lib/main.js'
##[debug]System.IO.FileNotFoundException: File not found: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4/lib/main.js'
##[debug]File name: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4/lib/main.js'
##[debug]   at GitHub.Runner.Sdk.ArgUtil.File(String fileName, String name)
##[debug]   at GitHub.Runner.Worker.Handlers.NodeScriptActionHandler.RunAsync(ActionRunStage stage)
##[debug]   at GitHub.Runner.Worker.ActionRunner.RunAsync()
##[debug]   at GitHub.Runner.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
##[debug]Finishing: Deploy

Workflow

name: Deploy

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 16.13.0

      - name: Setup
        run: npm ci
  
      - name: Build
        run: npm run build

      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@v4
        with:
          branch: gh-pages
          folder: dist


### Additional Comments

_No response_

same issue on my side

Until this issue is fixed:
Change uses: JamesIves/github-pages-deploy-action@v4 to uses: JamesIves/github-pages-deploy-action@v4.6.4
Confirmed working on my end.

Same issue here. Using similar to the solution above, but pinning to the commit hash to revert to previous version:

uses: JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4

Same issue on my side and tomorrow am doing a presentation demo on "Exploring Nuxt Studio" ๐Ÿฅน

Same issue here.

Same issue as well.

same issue

For now i've fixed this by changing the version to 4.6.4 manually in the workflow file instead of v4.

image

Here the reproduction repo

Also seeing this issue occur. Thank you for any fixes and for the work in general on this project!

Still seeing the same issue
image

same issue! it works out!

Same issue. Any update on this?

Same issue. Any update on this?

v4 -> v4.6.4

same issue

This issue has now been resolved as of v4.6.7, apologies about that. I'm going to make some adjustments to the integration tests so this doesn't go missed during the release cycle. The v4 major tag has also been updated so any existing workflows should now work as expected.