From 2667234524389080166d43a299895baefc63050f Mon Sep 17 00:00:00 2001 From: Venkat Kunisetty Date: Sun, 23 Jul 2023 18:47:36 +0530 Subject: [PATCH] update yml --- .github/workflows/push_build_staging.yml | 28 +++++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push_build_staging.yml b/.github/workflows/push_build_staging.yml index d6462bb..865e06b 100644 --- a/.github/workflows/push_build_staging.yml +++ b/.github/workflows/push_build_staging.yml @@ -67,20 +67,32 @@ jobs: # token: ${{ secrets.GITHUB_TOKEN }} # projects: 'Single' - - name: get-npm-version - id: package-version - uses: martinbeentjes/npm-get-version-action@v1.3.1 - with: - path: chrome-extension\public\manifest.json + # - name: get-npm-version + # id: package-version + # uses: martinbeentjes/npm-get-version-action@v1.3.1 + # with: + # path: chrome-extension\public\manifest.json + + - name: Read manifest.json + id: set_version + run: | + content=`cat ./chrome-extension/public/manifest.json` + content="${content//'%'/'%25'}" + content="${content//$'\n'/'%0A'}" + content="${content//$'\r'/'%0D'}" + echo "::set-output name=manifestJson::$content" - - name: Create Pre-Release + - name: Get current version + run: echo "${{fromJson(steps.set_version.outputs.manifestJson).version}}"" + + - name: Create Pre-Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ steps.package-version.outputs.current-version }} - release_name: Release ${{ steps.package-version.outputs.current-version }} + tag_name: ${{fromJson(steps.set_version.outputs.manifestJson).version}} + release_name: Release ${{fromJson(steps.set_version.outputs.manifestJson).version}} draft: false prerelease: true