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

execa not working with github script #346

Open
CarlFMateus opened this issue Mar 9, 2023 · 2 comments
Open

execa not working with github script #346

CarlFMateus opened this issue Mar 9, 2023 · 2 comments
Labels
question A question on how to use this action

Comments

@CarlFMateus
Copy link

Describe the bug
I have tried to use execa with github script following the documentation that github-script shows me, but deploying it doesn't work either using yarn or using npm.

This is the code that I am implementing in github actions

To Reproduce
Steps to reproduce the behavior:

jobs:
  tests:
    if: startsWith(github.head_ref, 'feature')
    runs-on: ubuntu-latest

    permissions: write-all

    strategy:
      matrix:
        node-version: [16.x]

    steps:
      - uses: actions/checkout@v3
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{matrix.node-version}}
      - name: Install dependencies
        run: npm ci
      - run: npm install execa
      - name: Do you have a unit test?
        uses: actions/github-script@v6
        with:
          script: |
            const execa = require('execa')
            console.log(execa)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Captura de Pantalla 2023-03-09 a la(s) 9 28 33 a m

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@joshmgross
Copy link
Member

@CarlFMateus did you try the suggestion mentioned in sindresorhus/execa#543 (comment)?

#249 (comment)

@joshmgross joshmgross added the question A question on how to use this action label Mar 10, 2023
@joshmgross
Copy link
Member

Linking #366, we need to fix our documentation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question on how to use this action
Projects
None yet
Development

No branches or pull requests

2 participants