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

Action amplify CLI version #25

Open
MateoKruk opened this issue Jul 7, 2021 · 6 comments
Open

Action amplify CLI version #25

MateoKruk opened this issue Jul 7, 2021 · 6 comments

Comments

@MateoKruk
Copy link

When using the action I get the following error:

image

@applyinnovations
Copy link

For some reason ambientlight/amplify-cli-action@0.3.0 is still using amplify version 4.52.0 however the latest published version on npm is 5.5.0. According to the readme isn't amplify-cli-action supposed to be pulling the @latest from npm? This has broken my deployment workflows because there are breaking changes between version 4 and version 5 of the amplify cli.

@applyinnovations
Copy link

The Dockerfile in the master branch https://github.com/ambientlight/amplify-cli-action/blob/master/Dockerfile runs
npm install --global --unsafe-perm @aws-amplify/cli@latest
however only version 4.52.0 is used not 5.5.0.

On my local machine:

$ npm view @aws-amplify/cli@latest
@aws-amplify/cli@5.5.0 | Apache-2.0 | deps: 68 | versions: 958

Anyone know why our actions are still using an old version?

@etaytch
Copy link

etaytch commented Sep 16, 2021

Hey all,
I'm having the same issue.
Is there an ETA for this?
🙏 🙏

@applyinnovations
Copy link

I can confirm that specifying the amplify version within your workflow can be used as a temporary fix.

    uses: ambientlight/amplify-cli-action@0.3.0
    with:
        amplify_cli_version: '5.6.0'

@applyinnovations
Copy link

Even better is to do the following:

env:
  AMPLIFY_CLI_VERION: 'latest'
jobs:
    init:
        - name: Amplify configure
        uses: ambientlight/amplify-cli-action@0.3.0
        with:
          amplify_command: configure
          amplify_cli_version: ${{ env.AMPLIFY_CLI_VERION }}

@hedleysmith
Copy link

This worked well for me

  - name: deploy
    uses: ambientlight/amplify-cli-action@0.3.0
    with:
      amplify_command: publish
      amplify_env: sandbox
      amplify_cli_version: 'latest'

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

No branches or pull requests

3 participants