File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 run : pnpm install
6363
6464 - name : Calculate Extension Version
65- id : vars
65+ id : compute-version
6666 run : |
6767 SHA=${GITHUB_SHA::7}
6868 if [[ "${{ github.event_name }}" == "pull_request" ]]; then
@@ -74,12 +74,13 @@ jobs:
7474 else
7575 WEBEXT_VERSION_NAME="0.0.0-dev-latest-$SHA"
7676 fi
77- echo "WEBEXT_VERSION_NAME =$WEBEXT_VERSION_NAME" >> $GITHUB_ENV
78- echo "WEBEXT_TAG_VERSION =$WEBEXT_TAG_VERSION" >> $GITHUB_ENV
77+ echo "version-name =$WEBEXT_VERSION_NAME" >> $GITHUB_OUTPUT
78+ echo "tag-version =$WEBEXT_TAG_VERSION" >> $GITHUB_OUTPUT
7979
8080 - name : Set version in package.json
8181 run : |
82- jq --arg ver "$WEBEXT_VERSION_NAME" '.version = $ver' package.json > tmp.json && mv tmp.json package.json
82+ echo "Using package version: ${{steps.compute-version.outputs.version-name}}"
83+ jq --arg ver "${{steps.compute-version.outputs.version-name}}" '.version = $ver' package.json > tmp.json && mv tmp.json package.json
8384
8485 - name : Build extension zip
8586 env :
@@ -129,7 +130,7 @@ jobs:
129130 uses : softprops/action-gh-release@v2.5.0
130131 if : github.ref_type == 'tag'
131132 with :
132- name : Web Extension ${{github.env.WEBEXT_TAG_VERSION }}
133+ name : Web Extension ${{steps.compute-version.outputs.tag-version }}
133134 fail_on_unmatched_files : true
134135 files : ${{github.workspace}}/browser-extension/.output/bth-extension-*.zip
135136
You can’t perform that action at this time.
0 commit comments