This Action automates the process of updating chrome extension apps.
- Update to next version and commit to repository(package.json, manifest.json)
- Upload Chrome Web Store
- Create Release Note
Please create the following labels in advance.
release:major
release:minor
release:patch
When a pull request is merged, the label assigned to it determines which layer is updated.
Note
- Label names must match exactly
- If neither label is given, "patch" is selected by default
steps:
uses: mmrakt/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
A commit will be pushed that updates the version of package.json and manifest.(e.g.)
steps:
uses: mmrakt/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
manifest_file_path: "extension-version.json"
upload_chrome_web_store: true
chrome_extension_id: ${{ secrets.EXTENSION_ID }}
google_client_id: ${{ secrets.CLIENT_ID }}
google_client_secret: ${{ secrets.CLIENT_SECRET }}
refresh_token: ${{ secrets.REFRESH_TOKEN }}
zip_file_name: "archive"
out_dir: "./build"
create_release_note: true
manifest version file path
- default:
manifest.json
- default: false
chrome extension id
google cloud client id
google cloud client secret
google cloud refresh token
ref: How to generate Google API keys
- default:
output
- default:
./dist
- default: false