R/workflows.R

Defines functions include_action_check

Documented in include_action_check

#' Github Actions
#' 
#' Adds a Github Action to the package that will ensure
#' JavaScript files have been bundled for production.
#' 
#' @export
include_action_check <- function(){
	file <- pkg_file("hooks/check.yml")
	fs::dir_create(".github/workflows", recurse = TRUE)
	fs::file_copy(file, ".github/workflows/packer-check.yml")
	usethis::use_build_ignore(".github/")
}

Try the packer package in your browser

Any scripts or data that you put into this service are public.

packer documentation built on May 28, 2022, 5:06 p.m.