Skip to content

Commit

Permalink
test up
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-bisonai committed May 29, 2024
1 parent b116002 commit 20502c6
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/tag+deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,36 +129,36 @@ jobs:
PAT: ${{ secrets.PAT }}
if: ${{ success() }}

update-package-json-version:
name: Update package.json version
needs: [prepare, build, image-update]
runs-on: ubuntu-latest
steps:

- name: Read package.json
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./package.json
- name: Echo package.json
run: echo "${{ steps.package.outputs.content }}"

- name: update package.json version
if: needs.prepare.outputs.version
run: |
version=v${{ needs.prepare.outputs.version }}
echo "updating package.json to version $version"
cd ./${{ needs.prepare.outputs.service }}
npm version $version --no-git-tag-version
- name: commit updated package.json
if: needs.prepare.outputs.version
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add package.json
git commit -m "chore: update package.json version to ${{ needs.prepare.outputs.version }}"
git push origin HEAD:${{ github.ref_name }}
# update-package-json-version:
# name: Update package.json version
# needs: [prepare, build, image-update]
# runs-on: ubuntu-latest
# steps:

# - name: Read package.json
# id: package
# uses: juliangruber/read-file-action@v1
# with:
# path: ./package.json
# - name: Echo package.json
# run: echo "${{ steps.package.outputs.content }}"

# - name: update package.json version
# if: needs.prepare.outputs.version
# run: |
# version=v${{ needs.prepare.outputs.version }}
# echo "updating package.json to version $version"
# cd ./${{ needs.prepare.outputs.service }}
# npm version $version --no-git-tag-version

# - name: commit updated package.json
# if: needs.prepare.outputs.version
# run: |
# git config --global user.name 'github-actions'
# git config --global user.email '[email protected]'
# git add package.json
# git commit -m "chore: update package.json version to ${{ needs.prepare.outputs.version }}"
# git push origin HEAD:${{ github.ref_name }}

post-slack-tag-update-success:
name: Post slack message for tag update success
Expand Down

0 comments on commit 20502c6

Please sign in to comment.