5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 16:06:56 +00:00
commitlint-github-action/entrypoint.sh
Wagner Santos 732f0ad7d5 feat: upgrade to commitlint v19
BREAKING CHANGE: `commitlint.config.js` is not supported anymore, please use `.mjs` extension
2024-03-28 17:05:21 -03:00

17 lines
496 B
Bash
Executable file

#!/bin/sh
set -e
if [ -z "$NODE_PATH" ]; then
export NODE_PATH=/node_modules
else
export NODE_PATH="$NODE_PATH":/node_modules
fi
# Since actions/checkout can be setup with a different user ID, we need to set the workspace as safe inside this action
# Info about the vunlerability: https://github.blog/2022-04-12-git-security-vulnerability-announced/
git config --global --add safe.directory "$GITHUB_WORKSPACE"
export NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules"
node /run.mjs