Skip to content

Commit

Permalink
Merge pull request #25 from aaron5670/automatic-publish-webstore
Browse files Browse the repository at this point in the history
Automatic submit the extension to Chrome Web Store on Release
  • Loading branch information
aaron5670 authored Jan 24, 2023
2 parents aa263da + 4f6b2e1 commit 710d870
Show file tree
Hide file tree
Showing 4 changed files with 1,130 additions and 636 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Submit to Web Store"
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2.2.4
with:
version: latest
run_install: true

- name: Use Node.js 16.x
uses: actions/setup-node@v3.4.1
with:
node-version: 16.x
cache: "pnpm"

- name: Build and zip extension artifact
run: pnpm build --zip

- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.SUBMIT_KEYS }}
artifact: build/chrome-mv3-prod.zip
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ keys.json
.tsbuildinfo

.npmrc

key.json
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "toggle-experiment",
"displayName": "Toggle Experiment",
"description": "A browser extension to inject the LocalStorage of a website for Optimizely experiments.",
"version": "0.6.0",
"version": "0.6.1",
"author": "Aaron van den Berg",
"homepage": "https://aaronvandenberg.nl/",
"scripts": {
"dev": "plasmo dev",
"build": "plasmo build"
"build": "plasmo build",
"package": "plasmo package"
},
"dependencies": {
"@emotion/react": "^11.10.4",
Expand All @@ -16,19 +17,19 @@
"@plasmohq/storage": "^0.12.2",
"@tabler/icons": "^1.104.0",
"immer": "^9.0.15",
"plasmo": "0.60.2",
"plasmo": "0.63.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"zustand": "^4.1.2"
},
"devDependencies": {
"@plasmohq/prettier-plugin-sort-imports": "3.5.4",
"@types/chrome": "0.0.197",
"@types/node": "18.8.5",
"@types/react": "18.0.21",
"@types/react-dom": "18.0.6",
"@plasmohq/prettier-plugin-sort-imports": "3.6.0",
"@types/chrome": "0.0.202",
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"prettier": "2.7.1",
"typescript": "4.8.4"
"typescript": "4.9.3"
},
"manifest": {
"host_permissions": [
Expand Down
Loading

0 comments on commit 710d870

Please sign in to comment.