Skip to content

Commit

Permalink
chore: reset version & add WIP publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Apr 28, 2023
1 parent a710369 commit 23ca265
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
publish:
name: Publish to Firefox
name: Publish to Firefox AMO
timeout-minutes: 10
runs-on: self-hosted

Expand All @@ -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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 23ca265

Please sign in to comment.