expo / expo-github-action

Expo GitHub Action makes it easy to automate EAS builds or updates
MIT License
772 stars 76 forks source link

continuous-deploy-fingerprint error: The process '/usr/local/bin/npx' failed with exit code 1 #296

Closed yannikreiter-maxworx closed 1 week ago

yannikreiter-maxworx commented 2 months ago

Description of the bug

Using the continous-deploy-fingerprint sub action as described in the sample workflow causes the following error: Error: Could not get fingerprint for project: Error: The process '/usr/local/bin/npx' failed with exit code 1

To Reproduce

  1. Create GitHub Actions workflow based on the sample
  2. Create pull request

Expected behavior

Based on the fingerprint, either an update is published or new build is started.

Actual behavior

The "Continuously Deploy" step fails.

Additional context

This is my YAML file, slightly altered from the sample:

on:
  push:
    branches:
      - staging
  pull_request:
    types: [opened, synchronize]

env:
  EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}

jobs:
  continuously-deploy:
    runs-on: ubuntu-latest
    concurrency: continuous-deploy-fingerprint-${{ github.event_name != 'pull_request' && 'staging' || github.run_id }}
    permissions:
      contents: read # Allow checkout
      pull-requests: write # Allow comments on PRs
    steps:
      - name: šŸ— Setup repo
        uses: actions/checkout@v4

      - name: šŸ— Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: 18.x

      - name: šŸ“¦ Install dependencies
        run: npm install

      - name: šŸ— Setup EAS
        uses: expo/expo-github-action@main
        with:
          eas-version: latest
          packager: npm
          token: ${{ secrets.EXPO_TOKEN }}

      - name: Continuously Deploy
        uses: expo/expo-github-action/continuous-deploy-fingerprint@main
        with:
          profile: development-preview
          branch: development-preview
wschurman commented 1 week ago

@yannikreiter-maxworx - can you provide a set of commands/instructions to create an expo project that this occurs in?

wschurman commented 1 week ago

Tried to repro with a basic project and couldn't find the repro. If you have a project repro that this occurs on, definitely open a new issue with the instructions. Thanks for the report!