-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #376
- Loading branch information
Showing
8 changed files
with
181 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
next_version=$1 | ||
|
||
function update_json() { | ||
new_json="$(jq -r '.version = "'$next_version'"' $path)" | ||
echo "$new_json" >$path | ||
} | ||
|
||
path='package.json' | ||
update_json | ||
|
||
path='src/manifest-chrome.json' | ||
update_json | ||
|
||
path='src/manifest-firefox.json' | ||
update_json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,54 @@ | ||
/* eslint-disable no-template-curly-in-string */ | ||
module.exports = { | ||
'plugins': [ | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
'@semantic-release/release-notes-generator', | ||
['@semantic-release/changelog', { | ||
changelogFile: 'CHANGELOG.md', | ||
}], | ||
['@semantic-release/exec', { | ||
prepareCmd: 'yarn build:prepare ${nextRelease.version} && yarn build', | ||
}], | ||
['semantic-release-firefox-add-on', { | ||
extensionId: '{55a4be35-e4be-40dc-a87e-ea6a58d04f46}', | ||
targetXpi: 'leboncoin-pdf-ext-${nextRelease.version}.xpi', | ||
artifactsDir: 'packages', | ||
channel: 'listed', | ||
}], | ||
['semantic-release-chrome', { | ||
asset: 'leboncoin-pdf-ext-${nextRelease.version}.zip', | ||
extensionId: 'mifkoblilhehppoemadbhopbbijpifcj', | ||
}], | ||
['@semantic-release/github', { | ||
assets: [ | ||
'packages/leboncoin-pdf-ext-${nextRelease.version}.xpi', | ||
'leboncoin-pdf-ext-${nextRelease.version}.zip', | ||
], | ||
}], | ||
['@semantic-release/git', { | ||
assets: [ | ||
'CHANGELOG.md', | ||
'package.json', | ||
'src/manifest.json', | ||
], | ||
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', | ||
}], | ||
[ | ||
'@semantic-release/changelog', | ||
{ | ||
changelogFile: 'CHANGELOG.md', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/exec', | ||
{ | ||
prepareCmd: 'pnpm build:increment ${nextRelease.version} && pnpm build', | ||
}, | ||
], | ||
[ | ||
'semantic-release-firefox-add-on', | ||
{ | ||
extensionId: '{55a4be35-e4be-40dc-a87e-ea6a58d04f46}', | ||
targetXpi: 'leboncoin-pdf-ext-${nextRelease.version}.xpi', | ||
sourceDir: 'dist/firefox', | ||
artifactsDir: 'packages', | ||
channel: 'listed', | ||
}, | ||
], | ||
[ | ||
'semantic-release-chrome', | ||
{ | ||
asset: 'leboncoin-pdf-ext-${nextRelease.version}.zip', | ||
extensionId: 'mifkoblilhehppoemadbhopbbijpifcj', | ||
distFolder: 'dist/chrome', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/github', | ||
{ | ||
assets: [ | ||
'packages/leboncoin-pdf-ext-${nextRelease.version}.xpi', | ||
'leboncoin-pdf-ext-${nextRelease.version}.zip', | ||
], | ||
}, | ||
], | ||
[ | ||
'@semantic-release/git', | ||
{ | ||
assets: ['CHANGELOG.md', 'package.json', 'src/manifest-*.json'], | ||
message: | ||
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "PDF Exporter for leboncoin.fr", | ||
"short_name": "leboncoin-pdf", | ||
"description": "PDF exporting Web Extension of classified ads listed on leboncoin.fr", | ||
"version": "1.12.17", | ||
"manifest_version": 3, | ||
"icons": { | ||
"512": "assets/icon.png" | ||
}, | ||
"action": { | ||
"default_icon": { | ||
"512": "assets/icon.png" | ||
}, | ||
"default_title": "PDF Exporter for leboncoin.fr", | ||
"default_popup": "popup/index.html" | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"*://*.leboncoin.fr/*" | ||
], | ||
"js": [ | ||
"scripts/content.js" | ||
], | ||
"run_at": "document_end", | ||
"all_frames": false | ||
} | ||
], | ||
"background": { | ||
"service_worker": "scripts/background.js" | ||
}, | ||
"permissions": [ | ||
"*://*.leboncoin.fr/*", | ||
"storage" | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters