Avoid using node:crypto in code that executes in the browser #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify major and minor versions | |
on: push | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check versions | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
echo "Verifying that all packages have the same major and minor version (patch version can be different)..." | |
version_base=$(cat package.json | jq '.version' --raw-output) | |
version_base=${version_base%.*} | |
echo "Base Version: $version_base" | |
find . -name "package.json" -type f -not -path "*/node_modules/*" -not -path "*/.next/*" -not -path "*/state/*" | sort | while read -r file; do | |
name_pkg=$(cat $file | jq '.name' --raw-output) | |
version_pkg=$(cat $file | jq '.version' --raw-output) | |
version_pkg="${version_pkg%.*}" | |
if [ "$version_base" != "$version_pkg" ]; then | |
echo "- $name_pkg: mismatch! (at $version_pkg)" | |
exit 1 | |
else | |
echo "- $name_pkg: correct" | |
fi | |
done |