File tree 4 files changed +25
-14
lines changed
4 files changed +25
-14
lines changed Original file line number Diff line number Diff line change @@ -189,3 +189,14 @@ jobs:
189
189
- run : test "$(pkgx --version)" = 'pkgx 1.0.0'
190
190
- run : ./installer.sh
191
191
- run : pkgx semverator gt $(pkgx --version | awk '{print $2}') 1.0.0
192
+
193
+ pkgm :
194
+ runs-on : ubuntu-latest
195
+ steps :
196
+ - uses : actions/checkout@v4
197
+ - run : ' ! pkgm --version'
198
+ - run : ' ! deno --version'
199
+ - run : cat ./installer.sh | sh
200
+ - run : pkgm --version
201
+ - run : pkgm i deno
202
+ - run : deno --version
Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ $ pkgx +rust
32
32
> See [`@pkgxdev/dev`] to run the `dev` command in a GitHub Actions compatible manner
33
33
34
34
35
- # ## Shell Integration
36
-
37
- We cannot integrate with the GitHub Actions shell. But you probably don’t
38
- need it.
39
-
40
35
# ## Should you Cache `~/.pkgx`?
41
36
42
37
No. pkgx packages are just tarballs. Caching is just a tarball. You’ll likely
@@ -52,8 +47,8 @@ To install `pkgx`:
52
47
` ` ` sh
53
48
$ curl https://pkgx.sh | sh
54
49
55
- # - installs to ` /usr/local/bin/pkgx `
56
- # - if pkgx is already installed it’s a noop
50
+ # - installs ` pkgx` & `pkgm` to `/usr/local/bin`
51
+ # - if both are already installed, does an update check
57
52
```
58
53
59
54
## Temporary Sandboxes
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ _install_pkgx() {
117
117
progress=" --progress-bar"
118
118
fi
119
119
120
- tmpdir=$( mktemp -d)
120
+ tmpdir=" $( mktemp -d) "
121
121
122
122
if [ $# -eq 0 ]; then
123
123
if [ -f /usr/local/bin/pkgx ]; then
@@ -130,10 +130,14 @@ _install_pkgx() {
130
130
pipe=" $tmpdir /pipe"
131
131
mkfifo " $pipe "
132
132
133
+ curl --silent --fail --proto ' =https' -o " $tmpdir /pkgm" \
134
+ https://pkgxdev.github.io/pkgm/pkgm.ts
135
+
133
136
curl $progress --fail --proto ' =https' " https://pkgx.sh/$( uname) /$( uname -m) " .tgz > " $pipe " &
134
137
$SUDO sh -c "
135
138
mkdir -p /usr/local/bin
136
139
tar xz --directory /usr/local/bin < '$pipe '
140
+ install -m 755 " $tmpdir /pkgm" /usr/local/bin
137
141
" &
138
142
wait
139
143
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ major|minor|patch|prerelease)
42
42
esac
43
43
44
44
if [ $v_new = $v_latest ]; then
45
- echo " $v_new already exists!" >&2
45
+ echo v " $v_new already exists!" >&2
46
46
exit 1
47
47
fi
48
48
49
49
if ! gh release view v$v_new > /dev/null 2>&1 ; then
50
- gum confirm " prepare draft release for $v_new ?" || exit 1
50
+ gum confirm " prepare draft release for v $v_new ?" || exit 1
51
51
52
52
gh release create \
53
53
v$v_new \
@@ -74,6 +74,7 @@ if ! gh run watch --exit-status $run_id; then
74
74
exit $foo
75
75
fi
76
76
77
+ git checkout -b v$v_new -branch
77
78
npm run dist
78
79
git add ./action.js
79
80
git commit --message v$v_new
@@ -82,15 +83,15 @@ git push origin v$v_new
82
83
83
84
gh release upload --clobber v$v_new ./installer.sh ./action.js
84
85
85
- # reset so we don’t accidentally commit it
86
- git co action.js
87
-
88
86
gh release view v$v_new
89
87
90
- gum confirm " draft prepared, release $v_new ?" || exit 1
88
+ gum confirm " draft prepared, release v $v_new ?" || exit 1
91
89
92
90
gh release edit \
93
91
v$v_new \
94
92
--verify-tag \
95
93
--latest \
96
94
--draft=false
95
+
96
+ git checkout main
97
+ git branch -D v$v_new -branch
You can’t perform that action at this time.
0 commit comments