Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
client_id: ${{ secrets.CHROME_CLIENT }}
client_secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }}
extension_id: ${{ env.EXTENSION_ID }}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"scripts": {
"sync-version": "node scripts/sync-version.mjs",
"build": "npm run sync-version && tsc && cp src/manifest.json dist/ && cp src/popup.html dist/ && cp -r src/icons dist/",
"package": "npm run build && web-ext build --source-dir=dist --artifacts-dir=. --filename=ipfs-quicklaunch-{version}.zip --overwrite-dest",
"package": "npm run build && web-ext build --source-dir=dist --artifacts-dir=. --filename=ipfs-quicklaunch.zip --overwrite-dest",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lidel Was there any reason to include the version in the zip file?

This makes it a bit harder to automate the publishing, so I changed to a static name to keep things simple.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no hard reason, it is just a convention of mine, makes it easy to work with artifacts if you download multiple versions for regression testing, but fine to remove version from name if it makes things easier.

"publish:chrome-store": "npx cws-publish $CLIENT_ID $CLIENT_SECRET $REFRESH_TOKEN ipfs-quicklaunch.zip $EXTENSION_ID",
"release": "aegir release && npm run publish:chrome-store",
"start": "npm run build && web-ext run --source-dir=dist --target=chromium",
"release": "aegir release",
"watch": "tsc --watch",
"clean": "rm -rf dist ipfs-quicklaunch-*.zip"
"clean": "rm -rf dist ipfs-quicklaunch.zip"
},
"files": [
"src",
Expand Down Expand Up @@ -137,6 +138,7 @@
"devDependencies": {
"@types/chrome": "^0.0.248",
"aegir": "^47.0.20",
"cws-publish": "^2.1.1",
"typescript": "^5.0.0",
"web-ext": "^8.3.0"
},
Expand Down