Skip to content

Commit 23ca265

Browse files
committed
chore: reset version & add WIP publish workflow
1 parent a710369 commit 23ca265

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
publish:
10-
name: Publish to Firefox
10+
name: Publish to Firefox AMO
1111
timeout-minutes: 10
1212
runs-on: self-hosted
1313

@@ -17,10 +17,17 @@ jobs:
1717
with:
1818
node-version: 18
1919
cache: 'npm'
20-
cache-dependency-path: '**/package-lock.json'
2120

2221
- name: Install Deps
2322
run: npm i --prefer-offline --no-audit --progress=false
2423

25-
- name: Sign Firefox Extension
26-
run: npm run sign -- --api-secret ${{secrets.FIREFOX_TOKEN}}
24+
- name: Update version
25+
run: |
26+
npm version --no-git-tag-version ${${{ github.event.release.tag_name }}:1}
27+
sed -i -e "s/\"version\": *\"[0-9A-z.\-]*\"/\"version\": $(npm pkg get version)/gi" public/manifest.json
28+
# TODO: push version change to main
29+
30+
#- name: Sign Firefox Extension
31+
# run: npm run sign -- --api-secret ${{ secrets.FIREFOX_TOKEN }}
32+
# TODO: add signed addon file to release
33+
# TODO: push release to AMO

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Replace Maps iframes with OSM",
44
"author": "nobkd",
55
"license": "Unlicense",
6-
"version": "1.2.0",
6+
"version": "1.0.0",
77
"type": "module",
88
"homepage": "https://github.com/nobkd/replace-maps#readme",
99
"bugs": {

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Replace Maps iframes with OSM",
33
"manifest_version": 2,
44
"name": "Replace Maps",
5-
"version": "1.2.0",
5+
"version": "1.0.0",
66
"homepage_url": "https://github.com/nobkd/replace-maps",
77
"icons": {
88
"48": "icons/48.png",

0 commit comments

Comments
 (0)