Skip to content

Commit

Permalink
25 (#104)
Browse files Browse the repository at this point in the history
* 25
* bring in dockers
* chore: bring back unit tests
  • Loading branch information
micahg authored Feb 24, 2024
1 parent a1ccfca commit e834c0d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
56 changes: 29 additions & 27 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,26 @@ jobs:
- uses: actions/checkout@v4
- id: create-branch
name: Create Branch
env:
SEGMENT: patch
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
echo npm version minor
npm version minor
echo npm version $SEGMENT
npm version $SEGMENT
VERSION=$(node -p "require('./package.json').version")
BRANCH="release/$VERSION"
echo "release_branch=$BRANCH"
echo "release_branch=$BRANCH" >> "$GITHUB_OUTPUT"
echo "${{ needs.start-release.outputs.package_api }}"
if [ "${{ needs.start-release.outputs.package_api }}" == "true" ]; then
echo npm version minor -w packages/api
npm version minor -w packages/api
echo npm version $SEGMENT -w packages/api
npm version $SEGMENT -w packages/api
fi
echo "${{ needs.start-release.outputs.package_mui }}"
if [ "${{ needs.start-release.outputs.package_mui }}" == "true" ]; then
echo npm version minor -w packages/mui
npm version minor -w packages/mui
echo npm version $SEGMENT -w packages/mui
npm version $SEGMENT -w packages/mui
fi
git checkout -b "$BRANCH"
git status
Expand All @@ -65,24 +67,24 @@ jobs:
BODY: "Automated version update PR"
run: |
gh pr create --base main --head "$HEAD" -b "$BODY" -t "$TITLE"
# package-mui:
# needs: [start-release]
# if: needs.start-release.outputs.package_mui == 'true'
# uses: ./.github/workflows/docker.yaml
# permissions:
# contents: read
# packages: write
# with:
# package: mui
# registry: ghcr.io
# package-api:
# needs: [start-release]
# if: needs.start-release.outputs.package_api == 'true'
# uses: ./.github/workflows/docker.yaml
# permissions:
# contents: read
# packages: write
# with:
# package: api
# registry: ghcr.io
gh pr merge
package-mui:
needs: [start-release]
if: needs.start-release.outputs.package_mui == 'true'
uses: ./.github/workflows/docker.yaml
permissions:
contents: read
packages: write
with:
package: mui
registry: ghcr.io
package-api:
needs: [start-release]
if: needs.start-release.outputs.package_api == 'true'
uses: ./.github/workflows/docker.yaml
permissions:
contents: read
packages: write
with:
package: api
registry: ghcr.io
11 changes: 5 additions & 6 deletions .github/workflows/test-api.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Test API
on:
workflow_dispatch:
# push:
# paths:
# - 'packages/api/**'
# branches-ignore:
# - main
push:
paths:
- 'packages/api/**'
branches-ignore:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down

0 comments on commit e834c0d

Please sign in to comment.