Closed SimonDanisch closed 2 years ago
👋🏼 Hey @SimonDanisch! These actions were only ever needed to set 2-3 env vars. In Percy CLI we do what the actions runner does and read the env vars from a file -- eliminating the need for custom JS actions now.
But that doesn't work...
Can you share how it doesn't work? I'm going to guess you need something like npx
to get the location of the percy
CLI binary (npx is a short hand for something like: /node_modules/.bin/percy upload ...
)
Edit: Also, here's a doc for CLI migration: https://docs.percy.io/docs/migrating-to-percy-cli (for SDK migration)
From the readme:
From the docs:
So from that I take, I shouldn't be using this anymore:
But it doesn't really say what I should do instead... From the docs I take I understand I can just do something like:
But that doesn't work... So what's the snippet I should use these days for the newest Percy CLI?