Skip to content

execa not working with github script #543

Closed
@CarlFMateus

Description

@CarlFMateus

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

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)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions