Skip to content

action: Failed to open entrypoint file (ENOENT) #126

@dwisiswant0

Description

@dwisiswant0

When I deploy a single file typescript, I get the error as Failed to open entrypoint file at 'file:///home/runner/work/REPOSITORY/REPOSITORY/server.js': ENOENT: no such file or directory, lstat '/home/runner/work/REPOSITORY/REPOSITORY/server.js' which is the file is in the root directory (so I don't need to supply root input). Why do I get this kind of behavior?

Here's my workflow file:

name: Build & Deploy

on:
  push:
    paths:
      - "server.ts"
      - "**.md"
    branches:
      - master
  workflow_dispatch:

jobs:
  deploy:
    permissions:
      id-token: write
      contents: read
    runs-on: ubuntu-latest
    steps:
      - name: Check out
        uses: actions/checkout@v3

      # MY BUILD STEPS HERE

      - name: Deploy to Deno Deploy
        uses: denoland/deployctl@v1
        with:
          project: REPOSITORY
          entrypoint: ./server.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions