From 1d1a933cc8bf3b2dbe850cb1d1944702a16c7a8b Mon Sep 17 00:00:00 2001 From: Carlos Medeiros Date: Tue, 27 Sep 2022 18:41:19 +0100 Subject: [PATCH 1/2] add publish.yaml --- .github/workflows/publish.yaml | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..6f7abb0 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,53 @@ +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@v2 + with: + submodules: true + - name: Install node + uses: actions/setup-node@v2 + with: + node-version: '14.17.0' + 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 + uses: battila7/get-version-action@v2 + - 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 }} \ No newline at end of file From 449bed84513fd5ca3c6330500ba166f5b105245d Mon Sep 17 00:00:00 2001 From: Carlos Medeiros Date: Tue, 27 Sep 2022 18:41:41 +0100 Subject: [PATCH 2/2] update version and snapshots --- app/Makefile.version | 2 +- tests_zemu/snapshots/s-mainmenu/00004.png | Bin 377 -> 376 bytes tests_zemu/snapshots/s-mainmenu/00010.png | Bin 377 -> 376 bytes tests_zemu/snapshots/sp-mainmenu/00004.png | Bin 319 -> 321 bytes tests_zemu/snapshots/sp-mainmenu/00010.png | Bin 319 -> 321 bytes tests_zemu/snapshots/x-mainmenu/00004.png | Bin 319 -> 321 bytes tests_zemu/snapshots/x-mainmenu/00010.png | Bin 319 -> 321 bytes 7 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Makefile.version b/app/Makefile.version index 2a8d723..952814c 100644 --- a/app/Makefile.version +++ b/app/Makefile.version @@ -3,4 +3,4 @@ APPVERSION_M=0 # This is the `spec_version` field of `Runtime` APPVERSION_N=0 # This is the patch version of this release -APPVERSION_P=3 +APPVERSION_P=4 diff --git a/tests_zemu/snapshots/s-mainmenu/00004.png b/tests_zemu/snapshots/s-mainmenu/00004.png index 3e36c9784cb2eb98de31f105255001f5086256bd..4ef2a19b1132cc948d4f38e571a89c0e85318ffc 100644 GIT binary patch delta 349 zcmV-j0iyo-0{8-uB!53iL_t(|ob8#-5`!QNgrQU4|A9T&12Z%degcX>-0vtEt-B$K z)EEE&0H80&ZjQZhMZT(t@31G^ZP=q{Vw?dk!JQ2>*#l!}m`27Kz~L&tpbC9P{{TX& z?(0o|Bi#YDnOG~C-Tsd_cHN2xOtS;*7SWw|2z6ZR0W@` zcs;qhX vUin-^)`UB~m>Z2#N2HPf000000I()M5&ez<_B34<00000NkvXXu0mjfm_C_f delta 350 zcmV-k0ipi*0{H@vB!56jL_t(|ob8#*5`!QNMWIvv|ASrF1v4}f9swUfyk{wCb?yyG zL}LH|0DybhH?wb*EAmxEe23lHx?#7TiE#$_1ot-3WRHxYVHz1{0Eesmf-3YG{Q!hq z-PfD`M!Ex9GqF`N>;AXcH{FUyOtS;5OX$u!ggVak0GhcHLVs|w(kfKLP>>i}pCe^}ysD_K&X>VeB3GCJzS@?Rjj|q_piHFav7a3c2y0aj=+p?R z1U=a_K@5o2ni?!NK^3nj6RK+pqT_jTRG0f989)mG)t^sK*Ax^Tkabs~@ISd1u4;f^ zTKRpg_eHF!2UjEwTQgxV=aHibnxU7gACBNx=GJC;$Ke0Khx>0YImY4PeZx9RL6T07*qoM6N<$g0Z8T;{X5v diff --git a/tests_zemu/snapshots/s-mainmenu/00010.png b/tests_zemu/snapshots/s-mainmenu/00010.png index 3e36c9784cb2eb98de31f105255001f5086256bd..4ef2a19b1132cc948d4f38e571a89c0e85318ffc 100644 GIT binary patch delta 349 zcmV-j0iyo-0{8-uB!53iL_t(|ob8#-5`!QNgrQU4|A9T&12Z%degcX>-0vtEt-B$K z)EEE&0H80&ZjQZhMZT(t@31G^ZP=q{Vw?dk!JQ2>*#l!}m`27Kz~L&tpbC9P{{TX& z?(0o|Bi#YDnOG~C-Tsd_cHN2xOtS;*7SWw|2z6ZR0W@` zcs;qhX vUin-^)`UB~m>Z2#N2HPf000000I()M5&ez<_B34<00000NkvXXu0mjfm_C_f delta 350 zcmV-k0ipi*0{H@vB!56jL_t(|ob8#*5`!QNMWIvv|ASrF1v4}f9swUfyk{wCb?yyG zL}LH|0DybhH?wb*EAmxEe23lHx?#7TiE#$_1ot-3WRHxYVHz1{0Eesmf-3YG{Q!hq z-PfD`M!Ex9GqF`N>;AXcH{FUyOtS;5OX$u!ggVak0GhcHLVs|w(kfKLP>>i}pCe^}ysD_K&X>VeB3GCJzS@?Rjj|q_piHFav7a3c2y0aj=+p?R z1U=a_K@5o2ni?!NK^3nj6RK+pqT_jTRG0f989)mG)t^sK*Ax^Tkabs~@ISd1u4;f^ zTKRpg_eHF!2UjEwTQgxV=aHibnxU7gACBNx=GJC;$Ke0Khx>0YImY4PeZx9RL6T07*qoM6N<$g0Z8T;{X5v diff --git a/tests_zemu/snapshots/sp-mainmenu/00004.png b/tests_zemu/snapshots/sp-mainmenu/00004.png index ff03aaad7c76aaa2c2ee78d02b35fdf91b7473ba..61b6902775947b9620fffb6f1359b273ce64582b 100644 GIT binary patch delta 294 zcmV+>0one)0>J{1B!37=L_t(|obB0Bii0o^0MM}PP3Hbb%3bzDD#55NYiTC-y)Q|m zj5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