forked from pkgxdev/dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (26 loc) · 706 Bytes
/
action.yml
File metadata and controls
30 lines (26 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: pkgx/dev
description:
runs `pkgx`’s `dev` tool making the resulting packages available to this job
inputs:
path:
description: path that should be evaluated by `dev`
required: false
runs:
using: composite
steps:
- uses: pkgxdev/setup@v4
- run: |
TMP="$(mktemp)"
"$GITHUB_ACTION_PATH"/app.ts "$PWD" > "$TMP"
echo "file=$TMP" >> $GITHUB_OUTPUT
id: env
working-directory: ${{ inputs.path }}
shell: bash
- run: |
if ! command -v node >/dev/null 2>&1; then
node() {
pkgx node^20 "$@"
}
fi
node "$GITHUB_ACTION_PATH"/action.js ${{ steps.env.outputs.file }}
shell: bash