Skip to content

Commit 48a9d91

Browse files
committed
build: include version number in package filenames
1 parent a56fecc commit 48a9d91

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ jobs:
5252
gh release create "$TAG" \
5353
--title "$TAG" \
5454
--generate-notes \
55-
dist/github-notifier-pro-chrome.zip \
56-
dist/github-notifier-pro-firefox.zip
55+
dist/github-notifier-pro-chrome-${{ steps.version.outputs.version }}.zip \
56+
dist/github-notifier-pro-firefox-${{ steps.version.outputs.version }}.zip

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"ci": "npm run test && npm run lint && npm run format",
2020
"dev": "npm run ci && npm run dev:firefox",
2121
"all": "npm run ci && npm run build",
22-
"build": "rm -rf dist/tmp-firefox dist/github-notifier-pro-chrome.zip dist/github-notifier-pro-firefox.zip && mkdir -p dist && zip -r dist/github-notifier-pro-chrome.zip manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md' && mkdir -p dist/tmp-firefox && cp manifest-firefox.json dist/tmp-firefox/manifest.json && cp -r src images dist/tmp-firefox/ && (cd dist/tmp-firefox && zip -r ../github-notifier-pro-firefox.zip manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md') && rm -rf dist/tmp-firefox && echo '✨ Build complete! Chrome & Firefox packages in dist/'",
22+
"build": "rm -rf dist/tmp-firefox dist/*.zip && mkdir -p dist && V=$npm_package_version && zip -r \"dist/github-notifier-pro-chrome-$V.zip\" manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md' && mkdir -p dist/tmp-firefox && cp manifest-firefox.json dist/tmp-firefox/manifest.json && cp -r src images dist/tmp-firefox/ && (cd dist/tmp-firefox && zip -r \"../github-notifier-pro-firefox-$V.zip\" manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md') && rm -rf dist/tmp-firefox && echo '✨ Build complete! Chrome & Firefox packages in dist/'",
2323
"dev:firefox": "rm -rf dist/firefox-dev && mkdir -p dist/firefox-dev && cp manifest-firefox.json dist/firefox-dev/manifest.json && cp -r src dist/firefox-dev/ && cp -r images dist/firefox-dev/ && echo '🦊 Firefox dev environment ready at dist/firefox-dev/'",
2424
"test": "vitest run",
2525
"lint": "oxlint --deny-warnings src/ tests/",

0 commit comments

Comments
 (0)