Compare commits
32 Commits
f7543cfa1d
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a29cd9be5 | ||
|
|
6853c882de | ||
|
|
c4897062af | ||
|
|
cb20957171 | ||
|
|
7814a6a3de | ||
|
|
fd54ef990c | ||
|
|
09ddca6957 | ||
|
|
24a18e8f8e | ||
|
|
d4fb8a054b | ||
|
|
7b2c6affe1 | ||
|
|
1bf2fbe3a6 | ||
|
|
b9481a7dad | ||
|
|
fd65ad9de1 | ||
| 343d85d5a0 | |||
|
|
09267c7501 | ||
|
|
0d4407b100 | ||
|
|
6b3295e532 | ||
|
|
1ae6d73338 | ||
| 414eebee5f | |||
|
|
4c1a53cdf9 | ||
|
|
6f03935906 | ||
|
|
6858b95854 | ||
|
|
079deec711 | ||
|
|
2bbbd69e0c | ||
|
|
c0c579656c | ||
|
|
4cfcaf62aa | ||
|
|
5bc492f3c0 | ||
|
|
e5d3aec15f | ||
|
|
dbbe0cae04 | ||
| 1c32a78c0b | |||
|
|
784e537f26 | ||
|
|
1b7c56b088 |
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: web-ext lint
|
- name: web-ext lint
|
||||||
run: npx web-ext lint -v
|
run: npx web-ext lint -v
|
||||||
|
|
||||||
- name: Increment Version and Push
|
- name: Increment Version and Commit
|
||||||
if: github.event_name == 'push' # Only push back on actual merges/pushes, not PRs
|
if: github.event_name == 'push' # Only push back on actual merges/pushes, not PRs
|
||||||
run: |
|
run: |
|
||||||
# 1. Increment logic
|
# 1. Increment logic
|
||||||
@@ -42,28 +42,36 @@ jobs:
|
|||||||
git config --local user.email "space@reversed.dev"
|
git config --local user.email "space@reversed.dev"
|
||||||
git config --local user.name "space"
|
git config --local user.name "space"
|
||||||
|
|
||||||
# 3. Commit and Push
|
# 3. Commit (push will be done after publish)
|
||||||
git add manifest.json package.json
|
git add manifest.json package.json
|
||||||
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
|
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
|
||||||
git push
|
|
||||||
|
|
||||||
- name: web-ext build
|
- name: web-ext build
|
||||||
run: npx web-ext build -s . -a dist --overwrite-dest
|
run: npx web-ext build -s . -a dist --overwrite-dest
|
||||||
|
|
||||||
|
- name: Unzip build artifact
|
||||||
|
run: |
|
||||||
|
mkdir -p disst
|
||||||
|
unzip -o dist/*.zip -d disst
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: web-ext-build
|
name: web-ext-build
|
||||||
path: dist/
|
path: disst/**
|
||||||
|
|
||||||
- name: Publish to Mozilla Add-ons
|
- name: Publish to Mozilla Add-ons
|
||||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
||||||
run: |
|
run: |
|
||||||
# Ensure dependencies are available (npm ci ran earlier in this job)
|
|
||||||
npx web-ext sign \
|
npx web-ext sign \
|
||||||
--api-key ${{ secrets.MOZILLA_ADDON_API_KEY }} \
|
--api-key ${{ secrets.MOZILLA_ADDON_API_KEY }} \
|
||||||
--api-secret ${{ secrets.MOZILLA_ADDON_API_SECRET }} \
|
--api-secret ${{ secrets.MOZILLA_ADDON_API_SECRET }} \
|
||||||
--channel listed \
|
--channel listed \
|
||||||
--source-dir dist \
|
--approval-timeout 0 \
|
||||||
|
--source-dir . \
|
||||||
--artifacts-dir dist \
|
--artifacts-dir dist \
|
||||||
--overwrite-dest
|
--amo-metadata metadata.json
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: git push
|
||||||
|
|||||||
37
.gitea/workflows/dev.yml
Normal file
37
.gitea/workflows/dev.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [dev]
|
||||||
|
pull_request:
|
||||||
|
branches: [dev]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '24'
|
||||||
|
|
||||||
|
- run: npm install --only=dev
|
||||||
|
|
||||||
|
- name: web-ext lint
|
||||||
|
run: npx web-ext lint -v
|
||||||
|
|
||||||
|
- name: web-ext build
|
||||||
|
run: npx web-ext build -s . -a dist --overwrite-dest
|
||||||
|
|
||||||
|
- name: Unzip build artifact
|
||||||
|
run: |
|
||||||
|
mkdir -p disst
|
||||||
|
unzip -o dist/*.zip -d disst
|
||||||
|
|
||||||
|
- name: Upload build artifact
|
||||||
|
# v4+ not supported on Gitea Actions/Forgejo, use v3 for compatibility
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: web-ext-build
|
||||||
|
path: disst/**
|
||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1 +1,6 @@
|
|||||||
web-ext-artifacts/
|
web-ext-artifacts/
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
*.zip
|
||||||
|
*.xpi
|
||||||
@@ -1,7 +1,13 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "vinted-favs-price",
|
"name": "Vinted Favorites Price",
|
||||||
"version": "1.2.1",
|
"version": "1.4.0",
|
||||||
|
"icons": {
|
||||||
|
"16": "icon.png",
|
||||||
|
"32": "icon.png",
|
||||||
|
"48": "icon.png",
|
||||||
|
"128": "icon.png"
|
||||||
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
"firefox": [
|
"firefox": [
|
||||||
"shopping"
|
"shopping"
|
||||||
@@ -20,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "fav-price@vinted.de",
|
"id": "{425f78c9-e49e-4346-a7b5-b03ce33ea526}",
|
||||||
"data_collection_permissions": {
|
"data_collection_permissions": {
|
||||||
"required": [
|
"required": [
|
||||||
"websiteContent"
|
"websiteContent"
|
||||||
|
|||||||
11
metadata.json
Normal file
11
metadata.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"version": { "license": "MIT" },
|
||||||
|
"categories": { "firefox": ["shopping"] },
|
||||||
|
"requires_payment": false,
|
||||||
|
"icons": {
|
||||||
|
"16": "icon.png",
|
||||||
|
"32": "icon.png",
|
||||||
|
"48": "icon.png",
|
||||||
|
"128": "icon.png"
|
||||||
|
}
|
||||||
|
}
|
||||||
4118
package-lock.json
generated
Normal file
4118
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vinted-favs-price",
|
"name": "vinted-favs-price",
|
||||||
"version": "1.2.1",
|
"version": "1.3.1",
|
||||||
"description": "Firefox extension to track Vinted favorite prices.",
|
"description": "Firefox extension to track Vinted favorite prices.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user