@@ -34,42 +34,42 @@ jobs:
34
34
already_in_npm_nodejs : ${{ steps.check_in_npm.outputs.already_in_npm_nodejs != '' }}
35
35
36
36
steps :
37
- - uses : actions/checkout@v2
37
+ - uses : actions/checkout@v3
38
38
39
39
- name : Get current version
40
40
id : current_version
41
41
run : |
42
42
version="$(cargo -q metadata --no-deps \
43
43
| jq -r '.packages[] | select(.name == "${{ env.PKG_NAME }}") | .version')"
44
44
echo "$version"
45
- echo "::set-output name= current_version:: $version"
45
+ echo "current_version= $version" >> $GITHUB_OUTPUT
46
46
shell : bash
47
47
48
48
- name : Get release info
49
49
id : release_info
50
50
run : |
51
51
release_info="$(curl -s https://api.github.com/repos/${{ github.repository }}/releases \
52
52
| jq '.[] | select(.name == "v${{ steps.current_version.outputs.current_version }}")')"
53
- echo "::set-output name= release_info:: $release_info"
53
+ echo "release_info= $release_info" >> $GITHUB_OUTPUT
54
54
echo "$release_info"
55
55
56
56
asset_crate_url="$(echo "$release_info" \
57
57
| jq -r '.assets[] | select(.name | match("^${{ env.PKG_NAME }}.*\\.crate$")) | .browser_download_url')"
58
- echo "::set-output name= asset_crate_url:: $asset_crate_url"
58
+ echo "asset_crate_url= $asset_crate_url" >> $GITHUB_OUTPUT
59
59
echo "$asset_crate_url"
60
60
61
61
asset_npm_pkg_bundler_url="$(echo "$release_info" \
62
62
| jq -r '.assets[] | select(.name | match("^${{ env.PKG_NAME }}-${{ steps.current_version.outputs.current_version }}\\.tgz$")) | .browser_download_url')"
63
- echo "::set-output name= asset_npm_pkg_bundler_url:: $asset_npm_pkg_bundler_url"
63
+ echo "asset_npm_pkg_bundler_url= $asset_npm_pkg_bundler_url" >> $GITHUB_OUTPUT
64
64
echo "$asset_npm_pkg_bundler_url"
65
65
66
66
asset_npm_pkg_nodejs_url="$(echo "$release_info" \
67
67
| jq -r '.assets[] | select(.name | match("^${{ env.PKG_NAME_NODEJS }}-${{ steps.current_version.outputs.current_version }}\\.tgz$")) | .browser_download_url')"
68
- echo "::set-output name= asset_npm_pkg_nodejs_url:: $asset_npm_pkg_nodejs_url"
68
+ echo "asset_npm_pkg_nodejs_url= $asset_npm_pkg_nodejs_url" >> $GITHUB_OUTPUT
69
69
echo "$asset_npm_pkg_nodejs_url"
70
70
71
71
upload_url="$(echo "$release_info" | jq -r '.upload_url')"
72
- echo "::set-output name= upload_url:: $upload_url"
72
+ echo "upload_url= $upload_url" >> $GITHUB_OUTPUT
73
73
echo "$upload_url"
74
74
shell : bash
75
75
79
79
out="$(curl -s https://crates.io/api/v1/crates/${{ env.PKG_NAME }} | jq -r '.versions[] | .num' \
80
80
| grep '^${{ steps.current_version.outputs.current_version }}$')"
81
81
echo "in crates.io check: $out"
82
- echo "::set-output name= already_in_crates_io:: $out"
82
+ echo "already_in_crates_io= $out" >> $GITHUB_OUTPUT
83
83
shell : bash {0} # to opt-out of default fail-fast behavior
84
84
85
85
- name : check if already deployed to npm
@@ -88,12 +88,12 @@ jobs:
88
88
out="$(npm view ${{ env.PKG_NAME }}@${{ steps.current_version.outputs.current_version }} --json 2>/dev/null \
89
89
| jq -r '.versions | select (.!=null)')"
90
90
echo "in npm check for ${{ env.PKG_NAME }} : $out"
91
- echo "::set-output name= already_in_npm_bundler:: $out"
91
+ echo "already_in_npm_bundler= $out" >> $GITHUB_OUTPUT
92
92
93
93
out="$(npm view ${{ env.PKG_NAME_NODEJS }}@${{ steps.current_version.outputs.current_version }} --json 2>/dev/null \
94
94
| jq -r '.versions | select (.!=null)')"
95
95
echo "in npm check for ${{ env.PKG_NAME_NODEJS }}: $out"
96
- echo "::set-output name= already_in_npm_nodejs:: $out"
96
+ echo "already_in_npm_nodejs= $out" >> $GITHUB_OUTPUT
97
97
shell : bash {0} # to opt-out of default fail-fast behavior
98
98
99
99
@@ -103,7 +103,7 @@ jobs:
103
103
runs-on : ubuntu-latest
104
104
needs : checks
105
105
steps :
106
- - uses : actions/checkout@v2
106
+ - uses : actions/checkout@v3
107
107
108
108
- name : Set rustup profile & toolchain
109
109
run : |
@@ -130,9 +130,9 @@ jobs:
130
130
if : ${{ !(needs.checks.outputs.asset_crate_url && needs.checks.outputs.asset_npm_pkg_bundler_url && needs.checks.outputs.asset_npm_pkg_nodejs_url) }}
131
131
run : |
132
132
if [[ -n "${{ needs.checks.outputs.upload_url }}" ]]; then
133
- echo "::set-output name= value:: ${{ needs.checks.outputs.upload_url }}"
133
+ echo "value= ${{ needs.checks.outputs.upload_url }}" >> $GITHUB_OUTPUT
134
134
else
135
- echo "::set-output name= value:: ${{ steps.create_release.outputs.upload_url }}"
135
+ echo "value= ${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT
136
136
fi
137
137
138
138
- name : package and verify (crate)
@@ -148,7 +148,7 @@ jobs:
148
148
cargo package --list
149
149
150
150
asset_name="$(find target/package -name '*.crate' -printf '%f')"
151
- echo "::set-output name= asset_name:: $asset_name"
151
+ echo "asset_name= $asset_name" >> $GITHUB_OUTPUT
152
152
shell : bash
153
153
154
154
- name : upload to GitHub (crate)
@@ -169,7 +169,7 @@ jobs:
169
169
# build, install (verify) and pack
170
170
make -C wasm build install pack
171
171
asset_name="$(find wasm/pkg -name '*.tgz' -printf '%f')"
172
- echo "::set-output name= asset_name:: $asset_name"
172
+ echo "asset_name= $asset_name" >> $GITHUB_OUTPUT
173
173
shell : bash
174
174
175
175
- name : upload to GitHub (npm bundler)
@@ -190,7 +190,7 @@ jobs:
190
190
# build, install (verify) and pack
191
191
WASM_TARGET=nodejs PKG_NAME=${{ env.PKG_NAME_NODEJS }} make -C wasm build install pack
192
192
asset_name="$(find wasm/pkg -name '*.tgz' -printf '%f')"
193
- echo "::set-output name= asset_name:: $asset_name"
193
+ echo "asset_name= $asset_name" >> $GITHUB_OUTPUT
194
194
shell : bash
195
195
196
196
- name : upload to GitHub (npm nodejs)
@@ -238,7 +238,7 @@ jobs:
238
238
if : github.ref != 'refs/heads/stable' && github.event_name == 'workflow_dispatch'
239
239
runs-on : ubuntu-latest
240
240
steps :
241
- - uses : actions/checkout@v2
241
+ - uses : actions/checkout@v3
242
242
243
243
- name : Set rustup profile & toolchain
244
244
run : |
0 commit comments