Skip to content

mmrakt/update-chrome-extension-version-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update chrome extension version action

This Action automates the process of updating chrome extension apps.

Feature

  • Update to next version and commit to repository(package.json, manifest.json)
  • Upload Chrome Web Store
  • Create Release Note

Usage

Prerequisites

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

Basic

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.)

Advanced

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_file_path:

manifest version file path

  • default: manifest.json

upload_chrome_web_store:

  • default: false

chrome_extension_id:

chrome extension id

google_client_id:

google cloud client id

google_client_secret:

google cloud client secret

refresh_token:

google cloud refresh token

ref: How to generate Google API keys

zip_file_name:

  • default: output

out_dir:

  • default: ./dist

create_release_note:

  • default: false

License

MIT