adam7 / platformsh-cli-action

An unofficial GitHub Action for using the Platform.sh CLI
https://platform.sh/
MIT License
3 stars 2 forks source link

Error: Cannot find module '@actions/core' #10

Closed markdorison closed 3 years ago

markdorison commented 3 years ago

When I attempt to use this action, I see the following error:

- uses: actions/checkout@v2
- uses: adam7/platformsh-cli-action@v1.0
  with:
    token: ${{ secrets.PLATFORMSH_CLI_TOKEN }}
Error: Cannot find module '@actions/core'

image

After doing some initial research, it seems like this is related to the node_modules directory not being committed. It looks like it is committed on the releases/v1 branch but not in the tagged release which is what I am pointing to.

adam7 commented 3 years ago

@markdorison This is fixed now and I've added a test to the workflow to make sure it doesn't happen again. It'd be great if you could test and confirm that everything's working for you.

markdorison commented 3 years ago

@adam7 I have tested and can confirm that I can specify a branch and the action now runs as expected.

Any chance you could cut a new tagged release that includes these changes?

adam7 commented 3 years ago

@markdorison Of course, v1.1 is here now 👉 https://github.com/adam7/platformsh-cli-action/releases/tag/v1.1

markdorison commented 3 years ago

I tested pointing at v1.1 and it is working as expected. 🎉