From 1e0aadf77d0100ef4fa3f2cbc224629ae57a8918 Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Sat, 10 Aug 2024 16:35:46 -0700 Subject: [PATCH] fixing stuff --- .github/workflows/cd.yml | 16 +++++++++++++++- package.json | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 13c6537..90adfd2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,6 +12,7 @@ permissions: actions: read checks: write deployments: write + packages: write jobs: build-and-test: @@ -69,13 +70,13 @@ jobs: git add . git commit -m "Release v${{ env.version }}" echo "Pushing with message: Release v${{ env.version }}" + git push origin release - name: Generate release notes run: | cd ./release PREV_TAG=$(git describe --tags --abbrev=0) echo "${PREV_TAG}" - git log --pretty=format:"%h - %s (%an)" "${PREV_TAG}..HEAD" GIT_LOG=$(git log --pretty=format:"%h - %s (%an)" "${PREV_TAG}..HEAD") echo "RELEASE_NOTES<> $GITHUB_ENV echo "${GIT_LOG}" >> $GITHUB_ENV @@ -88,5 +89,18 @@ jobs: echo v${{ env.version }} echo ${{ env.exists }} + - name: Create Release + if: env.exists == 'false' + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.version }} + release_name: Release v${{ env.version }} + body: ${{ env.RELEASE_NOTES }} + draft: false + prerelease: false + commitish: release + \ No newline at end of file diff --git a/package.json b/package.json index b51eac0..be04856 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "azdataGraph", "description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.", - "version": "0.0.63", + "version": "0.0.62", "homepage": "https://github.com/microsoft/azdataGraph", "author": "Microsoft", "license": "Apache-2.0",