diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..9229e6d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,54 @@ +name: "Publish js packages" + +on: + release: + types: + - created + tags: + - "npm_v[0-9]+(\\.[0-9]+)*" + +jobs: + publish_npm_package: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: true + - name: Install node + uses: actions/setup-node@v3 + with: + registry-url: "https://registry.npmjs.org" + scope: "@zondax" + - name: Install yarn + run: npm install -g yarn + - name: Build package + run: | + cd js + yarn install + yarn build + - name: Get latest release version number + id: get_version + run: | + GITHUB_REF=${{ github.ref }} + echo "version=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT + - name: Show version + run: echo ${{ steps.get_version.outputs.version }} + - name: Clean latest release version number + id: get_version_cleaned + uses: bhowell2/github-substring-action@v1 + with: + output_name: version + value: ${{ steps.get_version.outputs.version }} + index_of_str: "npm_" + - name: Update tag + run: | + cd js + echo Publishing as ${{ steps.get_version_cleaned.outputs.version }} + npm --allow-same-version --no-git-tag-version version ${{ steps.get_version_cleaned.outputs.version }} + - name: Publish package + run: | + cd js + npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH_AUTO }} diff --git a/app/Makefile.version b/app/Makefile.version index 378e594..5145047 100644 --- a/app/Makefile.version +++ b/app/Makefile.version @@ -3,4 +3,4 @@ APPVERSION_M=0 # This is the minor version APPVERSION_N=0 # This is the patch version -APPVERSION_P=3 +APPVERSION_P=4 diff --git a/app/glyphs/icon_stax_32.gif b/app/glyphs/icon_stax_32.gif index 30e4353..091b14d 100644 Binary files a/app/glyphs/icon_stax_32.gif and b/app/glyphs/icon_stax_32.gif differ diff --git a/app/glyphs/icon_stax_64.gif b/app/glyphs/icon_stax_64.gif index 4794704..47a40df 100644 Binary files a/app/glyphs/icon_stax_64.gif and b/app/glyphs/icon_stax_64.gif differ diff --git a/app/stax_icon.gif b/app/stax_icon.gif index 30e4353..091b14d 100644 Binary files a/app/stax_icon.gif and b/app/stax_icon.gif differ diff --git a/tests_zemu/snapshots/s-mainmenu/00004.png b/tests_zemu/snapshots/s-mainmenu/00004.png index 672697c..a705f10 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00004.png and b/tests_zemu/snapshots/s-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00010.png b/tests_zemu/snapshots/s-mainmenu/00010.png index 672697c..a705f10 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00010.png and b/tests_zemu/snapshots/s-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00004.png b/tests_zemu/snapshots/sp-mainmenu/00004.png index be1ed44..15d4833 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00004.png and b/tests_zemu/snapshots/sp-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00010.png b/tests_zemu/snapshots/sp-mainmenu/00010.png index be1ed44..15d4833 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00010.png and b/tests_zemu/snapshots/sp-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00001.png b/tests_zemu/snapshots/st-mainmenu/00001.png index 47a5f35..06298d8 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00001.png and b/tests_zemu/snapshots/st-mainmenu/00001.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00004.png b/tests_zemu/snapshots/x-mainmenu/00004.png index be1ed44..15d4833 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00004.png and b/tests_zemu/snapshots/x-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00010.png b/tests_zemu/snapshots/x-mainmenu/00010.png index be1ed44..15d4833 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00010.png and b/tests_zemu/snapshots/x-mainmenu/00010.png differ