Compare commits
15 Commits
b9481a7dad
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ec7bf82421 | |||
|
|
94fd7f9f81 | ||
|
|
5c12de59bd | ||
|
|
9a29cd9be5 | ||
|
|
6853c882de | ||
|
|
c4897062af | ||
|
|
cb20957171 | ||
|
|
7814a6a3de | ||
|
|
fd54ef990c | ||
|
|
09ddca6957 | ||
|
|
24a18e8f8e | ||
|
|
d4fb8a054b | ||
|
|
7b2c6affe1 | ||
|
|
1bf2fbe3a6 | ||
| 292f55e89f |
@@ -49,12 +49,16 @@ jobs:
|
|||||||
- 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
|
||||||
# v4+ not supported on Gitea Actions/Forgejo, use v3 for compatibility
|
|
||||||
uses: actions/upload-artifact@v3
|
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')
|
||||||
|
|||||||
@@ -15,49 +15,23 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
|
|
||||||
- run: npm install --only=dev
|
- run: npm install --only=dev
|
||||||
|
|
||||||
- name: web-ext lint
|
- name: web-ext lint
|
||||||
run: npx web-ext lint -v
|
run: npx web-ext lint -v
|
||||||
|
|
||||||
- name: Increment Version and Commit
|
|
||||||
if: github.event_name == 'push' # Only push back on actual merges/pushes, not PRs
|
|
||||||
run: |
|
|
||||||
# 1. Increment logic
|
|
||||||
VERSION=$(jq -r '.version' manifest.json)
|
|
||||||
BASE=$(echo $VERSION | cut -d. -f1-2)
|
|
||||||
PATCH=$(echo $VERSION | cut -d. -f3)
|
|
||||||
NEW_VERSION="$BASE.$((PATCH + 1))"
|
|
||||||
|
|
||||||
# Update manifest.json version
|
|
||||||
jq ".version = \"$NEW_VERSION\"" manifest.json > temp.manifest.json && mv temp.manifest.json manifest.json
|
|
||||||
|
|
||||||
# Keep package.json version in sync, if present
|
|
||||||
if [ -f package.json ]; then
|
|
||||||
jq ".version = \"$NEW_VERSION\"" package.json > temp.package.json && mv temp.package.json package.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 2. Git Config
|
|
||||||
git config --local user.email "space@reversed.dev"
|
|
||||||
git config --local user.name "space"
|
|
||||||
|
|
||||||
# 3. Commit (push will be done after publish)
|
|
||||||
git add manifest.json package.json
|
|
||||||
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
|
|
||||||
|
|
||||||
- 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
|
||||||
# v4+ not supported on Gitea Actions/Forgejo, use v3 for compatibility
|
# v4+ not supported on Gitea Actions/Forgejo, use v3 for compatibility
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: web-ext-build
|
name: web-ext-build
|
||||||
path: dist/
|
path: disst/**
|
||||||
|
|
||||||
- name: Push changes
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
run: git push
|
|
||||||
@@ -1,7 +1,13 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Vinted Favorites Price",
|
"name": "Vinted Favorites Price",
|
||||||
"version": "1.3.1",
|
"version": "1.4.1",
|
||||||
|
"icons": {
|
||||||
|
"16": "icon.png",
|
||||||
|
"32": "icon.png",
|
||||||
|
"48": "icon.png",
|
||||||
|
"128": "icon.png"
|
||||||
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
"firefox": [
|
"firefox": [
|
||||||
"shopping"
|
"shopping"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
{
|
{
|
||||||
"version": { "license": "MIT" },
|
"version": { "license": "MIT" },
|
||||||
"categories": { "firefox": ["shopping"] },
|
"categories": { "firefox": ["shopping"] },
|
||||||
"requires_payment": false
|
"requires_payment": false,
|
||||||
|
"icons": {
|
||||||
|
"16": "icon.png",
|
||||||
|
"32": "icon.png",
|
||||||
|
"48": "icon.png",
|
||||||
|
"128": "icon.png"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vinted-favs-price",
|
"name": "vinted-favs-price",
|
||||||
"version": "1.3.1",
|
"version": "1.4.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