Skip to content

fix(update names): update jobs names #16

fix(update names): update jobs names

fix(update names): update jobs names #16

Workflow file for this run

name: Create Github Releases
on:
push:
branches:
- "*"
jobs:
create-version-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
# Step 1: Check out the repository code
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- id: set-matrix
run: |
matrix="["
for package_json in $(find ./packages -name package.json); do
version=$(jq -r .version "$package_json")
matrix="${matrix}{\"version\":\"${version}\"},"
done
matrix="${matrix%,}" # Remove trailing comma
matrix="${matrix}]" # Close the JSON array
echo "matrix=${matrix}" >> $GITHUB_OUTPUT
builder:
needs: create-version-matrix
runs-on: ubuntu-latest
strategy:
matrix:
cfg: ${{fromJson(needs.create-version-matrix.outputs.matrix)}}
steps:
- run: |
echo version: ${{ matrix.cfg.version }}