chore: update dependencies to use @wix-pilot/[email protected] #134
This file contains hidden or 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: Tag Monorepo Packages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| tag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install jq | |
| run: sudo apt-get install jq | |
| - name: Tag Packages | |
| run: | | |
| for package in packages/*; do | |
| if [ -f "$package/package.json" ]; then | |
| name=$(jq -r '.name' "$package/package.json") | |
| version=$(jq -r '.version' "$package/package.json") | |
| tag="${name}@${version}" | |
| if ! git rev-parse "$tag" >/dev/null 2>&1; then | |
| echo "Tagging: $tag" | |
| git tag "$tag" | |
| fi | |
| fi | |
| done | |
| git push --tags |