mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 03:13:15 +08:00
Simplify package creation
This commit is contained in:
13
scripts/create-package
Executable file
13
scripts/create-package
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
name=$1
|
||||
|
||||
if [[ -z "$name" ]]; then
|
||||
>&2 echo "Usage: npm run new-package [name]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
lerna create @actions/$name
|
||||
cp packages/toolkit/tsconfig.json packages/$name/tsconfig.json
|
||||
Reference in New Issue
Block a user