GitHub Action
Phrase CLI install
This action installs Phrase CLI tool for translation management.
See action.yml
steps:
- uses: actions/checkout@v4
- uses: phrase/setup-cli@v1
with:
version: 2.19.0
- run: phrase pull
- run: phrase push --wait
Before running the tool, you need to configure it, typically using a configuration file named .phrase.yml
. More information can be found here.
For authentication, you will probably want to use the authentication token passed through an environment variable PHRASE_ACCESS_TOKEN
. More info at the support link above.
The scripts and documentation in this project are released under the MIT License
Most of the code has been copied over from https://github.com/winify-ag/setup-phraseapp (see phrase/phrase-cli#119). Big thanks to original authors!
Contributions are welcome!
GitHub Actions will run the entry point from the action.yml. Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.
Actions are run from GitHub repos. Packaging the action will create a packaged action in the dist folder.
Run prepare
npm run prepare
Users shouldn't consume the action from master since that would be latest code and actions can break compatibility between major versions.
Checkin to the v1 release branch
git checkout -b v1
git commit -a -m "v1 release"
git push origin v1
See the versioning documentation