File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
+
4
+ ## v2.2.0 - [ March 1, 2023] ( https://github.com/lando/pkg-action/releases/tag/v2.2.0 )
5
+
6
+ * Added input ` pkg ` to specify version of [ @vercel/pkg ] ( https://github.com/vercel/pkg )
7
+ * Fixed bug where installed ` pkg ` version was not consistent across ` arch `
8
+
3
9
## v2.1.0 - [ March 1, 2023] ( https://github.com/lando/pkg-action/releases/tag/v2.1.0 )
4
10
5
11
* Bumped to ` node@16 `
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ These keys are set to sane defaults but can be modified as needed.
34
34
| ` node-version ` | The node version to package with. | ` node14 ` | ` node8 ` \| ` node10 ` \| ` node12 ` \| ` node14 ` \| ` node16 ` \| ` latest ` |
35
35
| ` options ` | Additional options and flags to pass into pkg. | ` null ` | Additional [ pkg options] ( https://github.com/vercel/pkg#usage ) |
36
36
| ` os ` | The operating system to build for. | ` ${{ runner.os }} ` | ` linux ` \| ` macos ` \| ` win ` |
37
+ | ` pkg ` | The version on @vercel/pkg to use. | ` 5.8.0 ` | ` latest ` |
37
38
| ` upload ` | Upload the artifacts. Useful if you need to grab them for downstream for things like code signing. | ` true ` | ` false ` \| ` true ` |
38
39
39
40
## Outputs
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ inputs:
29
29
description : " The operating system to build for win|linux|macos"
30
30
required : false
31
31
default : ${{ runner.os }}
32
+ pkg :
33
+ description : " The version on @vercel/pkg to use"
34
+ required : false
35
+ default : " 5.8.0"
32
36
test :
33
37
description : " Hidden flag for input testing"
34
38
default : false
@@ -91,10 +95,10 @@ runs:
91
95
node-version : 16
92
96
cache : npm
93
97
94
- - name : Install pkg
98
+ - name : Install pkg ${{ inputs.pkg }}
95
99
shell : bash
96
100
run : |
97
- npm install -g pkg@5.8.0
101
+ npm install -g pkg@${{ inputs.pkg }}
98
102
if pkg --version >/dev/null; then
99
103
echo "::notice title=pkg installed::Using version $(pkg --version)"
100
104
else
@@ -145,7 +149,7 @@ runs:
145
149
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
146
150
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
147
151
apt update && apt -y install yarn
148
- yarn global add pkg@5.6.0 --prefix /usr/local
152
+ yarn global add pkg@${{ inputs.pkg }} --prefix /usr/local
149
153
pkg --version
150
154
run : |
151
155
pkg \
You can’t perform that action at this time.
0 commit comments