revelotech / webext-buildtools-pack-extension-dir-action

Reads manifest and packs WebExtension dir to zip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js CI

Pack WebExtension directory to zip

The action reads WebExtension's manifest file and packs directory to zip file. You can use it to upload as release artifact or to provide inputs for further build steps

Based on DirReaderBuilder package.

Inputs

  • extensionDir Required Path to WebExtension directory (relative to repository)

  • zipFilePath Specify to save result zip file to path (relative to repository).

  • zipGlobPattern Include files according to the pattern while packing crx. Default: **

  • zipIgnore Patterns of files which will be excluded from the zip, separated by |. Default: *.pem|.git|*.crx

Outputs

  • extensionName from extension's manifest
  • extensionVersion from extension's manifest
  • zipFilePath the absolute path to built crx file (if zipFilePath input specified)

Example usage

uses: cardinalby/webext-buildtools-pack-extension-dir-action@v1
with:
  extensionDir: 'extension'
  crxFilePath: 'build/extension.zip'

About

Reads manifest and packs WebExtension dir to zip

License:MIT License


Languages

Language:TypeScript 100.0%