mirror of
https://github.com/gradle/actions
synced 2024-11-24 02:12:12 +00:00
23 lines
No EOL
378 B
Bash
Executable file
23 lines
No EOL
378 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd sources
|
|
npm install
|
|
|
|
case "$1" in
|
|
all)
|
|
nprm run all
|
|
;;
|
|
act)
|
|
# Build and copy outputs to the dist directory
|
|
npm run build
|
|
cd ..
|
|
cp -r sources/dist .
|
|
# Run act
|
|
$@
|
|
# Revert the changes to the dist directory
|
|
git co -- dist
|
|
;;
|
|
*)
|
|
npm run build
|
|
;;
|
|
esac |