Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
38b2aed
Add release workflow
ayoung19 Aug 11, 2023
39c7cd5
Add version checking script
ayoung19 Aug 11, 2023
dc1c10d
Lmao
ayoung19 Aug 11, 2023
e39d06e
Revert
ayoung19 Aug 11, 2023
f35406b
Test
ayoung19 Aug 11, 2023
3bdf7ce
Test
ayoung19 Aug 11, 2023
0cf08d9
Woops
ayoung19 Aug 11, 2023
ae8be79
Bumps Version to v3.2.1
ayoung19 Aug 11, 2023
bc99c26
Add prettier
ayoung19 Aug 11, 2023
01d4975
Prettified Code!
ayoung19 Aug 11, 2023
d240b2e
???
ayoung19 Aug 11, 2023
e26446a
Prettified Code!
ayoung19 Aug 11, 2023
82643c1
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
5761b00
Bumps Version to v3.3.0
ayoung19 Aug 11, 2023
63c3e1b
Add the real release
ayoung19 Aug 11, 2023
15d03a8
Delete zip
ayoung19 Aug 11, 2023
894d0f5
Bumps Version to v5.0.0
ayoung19 Aug 11, 2023
3861cd8
Woops
ayoung19 Aug 11, 2023
e00c71a
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
b4d327a
woooow
ayoung19 Aug 11, 2023
81f2451
Bumps Version to v6.0.0
ayoung19 Aug 11, 2023
dba897a
dam
ayoung19 Aug 11, 2023
e4119cc
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
7b50fe9
Bumps Version to v7.0.0
ayoung19 Aug 11, 2023
612aeb2
Convert to pr
ayoung19 Aug 11, 2023
44aa7cb
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
7a71303
Correct pr creation
ayoung19 Aug 11, 2023
537acbf
Bumps Version to v8.0.0
actions-user Aug 11, 2023
a8b3184
??
ayoung19 Aug 11, 2023
cda1cd6
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
8869c30
Bumps Version to v9.0.0
actions-user Aug 11, 2023
7224f3e
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
7eafe32
Bumps Version to v10.0.0 (#4)
github-actions[bot] Aug 11, 2023
fcdaad2
Revert
ayoung19 Aug 11, 2023
f788d61
Bumps Version to v12.0.0
ayoung19 Aug 11, 2023
1b8bb5b
Add token
ayoung19 Aug 11, 2023
01a0888
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
9441188
Bumps Version to v14.0.0
ayoung19 Aug 11, 2023
7c326ab
Change access token name
ayoung19 Aug 11, 2023
5a74e28
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
bf59b60
Set prettier options
ayoung19 Aug 11, 2023
d86493e
Bumps Version to v15.0.0
ayoung19 Aug 11, 2023
d2cd3a5
Wtf
ayoung19 Aug 11, 2023
a6f7331
Bumps Version to v16.0.0
ayoung19 Aug 11, 2023
faf68a4
?
ayoung19 Aug 11, 2023
d46bf0c
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
2c35aca
Bumps Version to v17.0.0
ayoung19 Aug 11, 2023
0e0f21d
Test
ayoung19 Aug 11, 2023
155cf4d
Bumps Version to v18.0.0
ayoung19 Aug 11, 2023
de9b88c
Wtf
ayoung19 Aug 11, 2023
ba9d981
Merge branch 'master' of github.com:ayoung19/extension
ayoung19 Aug 11, 2023
0586a6b
Bumps Version to v19.0.0
ayoung19 Aug 11, 2023
fbcf95c
Final
ayoung19 Aug 11, 2023
8c973ea
Add suggestions
ayoung19 Aug 13, 2023
2bc66ec
Remove relative path
ayoung19 Aug 13, 2023
d65c5bd
Bumps Version to v20.0.0
ayoung19 Aug 13, 2023
371019a
Revert "Bumps Version to v20.0.0"
ayoung19 Aug 13, 2023
5cb4fb5
Try new prettier options
ayoung19 Aug 13, 2023
88ba221
Bumps Version to v21.0.0
ayoung19 Aug 13, 2023
fe8d1b2
Revert "Bumps Version to v21.0.0"
ayoung19 Aug 13, 2023
7f7c530
Revert changes
ayoung19 Aug 13, 2023
574ee72
Bumps Version to v22.0.0
ayoung19 Aug 13, 2023
60415f1
???
ayoung19 Aug 13, 2023
b1a327f
Bumps Version to v23.0.0
ayoung19 Aug 13, 2023
4209258
lol
ayoung19 Aug 13, 2023
9edf01e
Bumps Version to v24.0.0
ayoung19 Aug 13, 2023
f74cac8
Lol
ayoung19 Aug 13, 2023
711db3e
Bumps Version to v25.0.0
ayoung19 Aug 13, 2023
bc0cb1d
Hm
ayoung19 Aug 13, 2023
a922719
Bumps Version to v26.0.0
ayoung19 Aug 13, 2023
a4c0665
Wow
ayoung19 Aug 13, 2023
d6f4970
Only format changed files
ayoung19 Aug 13, 2023
05cc05b
Hardcode version
ayoung19 Aug 17, 2023
7997405
Bumps Version to v30.0.0
ayoung19 Aug 17, 2023
673809f
Bumps Version to v32.0.0
ayoung19 Aug 17, 2023
55b8ca0
Undo version update
ayoung19 Aug 17, 2023
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
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Extension Release

on:
push:
tags:
- "v*"

jobs:
release:
runs-on: "ubuntu-latest"

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build and compress
run: |
npm install
npm run build
zip -r extension-chrome.zip dist
rm -rf dist
npm run build_ff
zip -r extension-firefox.zip dist

- uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
extension-chrome.zip
extension-firefox.zip
50 changes: 50 additions & 0 deletions .github/workflows/upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Extension Upgrade

on:
workflow_dispatch:
inputs:
version:
description: Version
required: true

jobs:
upgrade:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- name: Checkout Branch
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Update manifest/package.json version
run: |
./scripts/version-check.sh
jq '.version = $ENV.VERSION' manifest.json > tmp && mv tmp manifest.json
jq '.version = $ENV.VERSION' package.json > tmp && mv tmp package.json
jq '.version = $ENV.VERSION | .packages."".version = $ENV.VERSION' package-lock.json > tmp && mv tmp package-lock.json
npm install
npx prettier --write manifest.json package.json package-lock.json
env:
VERSION: ${{ inputs.version }}

- name: Add and commit
uses: EndBug/add-and-commit@v9
with:
message: "Bumps Version to v${{ inputs.version }}"
tag: "v${{ inputs.version }}"

- name: Push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
branch: ${{ github.ref }}
2 changes: 0 additions & 2 deletions .lintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ node_modules/
dist/
webpack.config.js
.idea/
package.json
package-lock.json
24 changes: 16 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions scripts/version-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
CURRENT_VERSION=$(jq '.version' manifest.json | tr -d '"')
NEW_VERSION="$VERSION"

if ! echo "$CURRENT_VERSION" | grep -Eq '^[0-9]+.[0-9]+.[0-9]+$'; then
echo Error: Current version not in valid format
exit 1
fi

if ! echo "$NEW_VERSION" | grep -Eq '^[0-9]+.[0-9]+.[0-9]+$'; then
echo Error: New version not in valid format
exit 1
fi

IFS='.' read -ra CURR <<< "$CURRENT_VERSION"
IFS='.' read -ra NEW <<< "$NEW_VERSION"

for i in ${!NEW[*]}; do
if [ $((NEW[i])) -lt $((CURR[i])) ]; then
echo ERROR: New release version is less than current release version
exit 1
elif [ $((NEW[i])) -gt $((CURR[i])) ]; then
exit 0
fi
done

echo Error: Current and new version are equal
exit 1
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = (env) => {
getPathEntries('./src/lib/page_scripts/*.ts'),
getPathEntries('./src/lib/types/*.d.ts'),
getPathEntries('./src/background.ts'),
getPathEntries('./src/**/*.js')
getPathEntries('./src/**/*.js'),
),
output: {
path: path.join(__dirname, 'dist'),
Expand Down