Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.17 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.17 KB

This GitHub Action is deprecated and no-longer supported, please use our newest version.

GitHub Action to report webpack stats to packtracker.io

This GitHub action will upload your webpack build stats to the packtracker.io service.

Configuration

Secrets (Required)

Environment variables (Optional)

  • WEBPACK_CONFIG_PATH - the relative path to your webpack configuration (if you have one)
  • PT_PROJECT_ROOT - the relative path to the directory of your project (containing your package.json file)

Workflow

A sample workflow file might look something like this

workflow "packtracker.io" {
  on = "push"
  resolves = ["Report to packtracker.io"]
}

action "Report to packtracker.io" {
  uses = "packtracker/[email protected]"
  secrets = ["PT_PROJECT_TOKEN"]
  env = {
    "WEBPACK_CONFIG_PATH" = "./config/webpack/production.js"
    "PT_PROJECT_ROOT" = "./path/to/subdirectory"
  }
}