From 23ca265e5b1565171a6dff8db4ae3852f27e89ff Mon Sep 17 00:00:00 2001 From: nobkd <44443899+nobkd@users.noreply.github.com> Date: Fri, 28 Apr 2023 17:34:01 +0200 Subject: [PATCH] chore: reset version & add WIP publish workflow --- .github/workflows/publish.yml | 15 +++++++++++---- package-lock.json | 4 ++-- package.json | 2 +- public/manifest.json | 2 +- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 55e65b1..2d155ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ on: jobs: publish: - name: Publish to Firefox + name: Publish to Firefox AMO timeout-minutes: 10 runs-on: self-hosted @@ -17,10 +17,17 @@ jobs: with: node-version: 18 cache: 'npm' - cache-dependency-path: '**/package-lock.json' - name: Install Deps run: npm i --prefer-offline --no-audit --progress=false - - name: Sign Firefox Extension - run: npm run sign -- --api-secret ${{secrets.FIREFOX_TOKEN}} + - name: Update version + run: | + npm version --no-git-tag-version ${${{ github.event.release.tag_name }}:1} + sed -i -e "s/\"version\": *\"[0-9A-z.\-]*\"/\"version\": $(npm pkg get version)/gi" public/manifest.json + # TODO: push version change to main + + #- name: Sign Firefox Extension + # run: npm run sign -- --api-secret ${{ secrets.FIREFOX_TOKEN }} + # TODO: add signed addon file to release + # TODO: push release to AMO diff --git a/package-lock.json b/package-lock.json index 7d54a2a..8051a9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "replace-maps", - "version": "1.2.0", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "replace-maps", - "version": "1.2.0", + "version": "1.0.0", "hasInstallScript": true, "license": "Unlicense", "dependencies": { diff --git a/package.json b/package.json index 12f63a5..1ac0003 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Replace Maps iframes with OSM", "author": "nobkd", "license": "Unlicense", - "version": "1.2.0", + "version": "1.0.0", "type": "module", "homepage": "https://github.com/nobkd/replace-maps#readme", "bugs": { diff --git a/public/manifest.json b/public/manifest.json index 8c805f2..e80a215 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -2,7 +2,7 @@ "description": "Replace Maps iframes with OSM", "manifest_version": 2, "name": "Replace Maps", - "version": "1.2.0", + "version": "1.0.0", "homepage_url": "https://github.com/nobkd/replace-maps", "icons": { "48": "icons/48.png",