You can use ACT to validate the workflows locally:
- Install ACT (See link for other systems):
brew install act
- Setup secrets variables in the
.act/.secrets
file:
NPM_TOKEN=
GITHUB_TOKEN=
- Run the workflow locally:
act --container-architecture=linux/amd64 --secret-file ./.act/.secrets -P ubuntu-latest=node:16 push -v