File tree Expand file tree Collapse file tree 6 files changed +24
-24
lines changed
Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 8686
8787 # Upload the download data:
8888 - name : ' Upload data'
89- # Pin action to full length commit SHA corresponding to v3.1.3
90- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
89+ # Pin action to full length commit SHA
90+ uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
9191 with :
9292 # Define a name for the uploaded artifact (ensuring a unique name for each job):
9393 name : npm_downloads
Original file line number Diff line number Diff line change @@ -124,16 +124,10 @@ jobs:
124124 mv ./package.json.tmp ./package.json
125125 fi
126126 done
127- jq -r '.devDependencies | keys[]' ./package.json | while read -r dep; do
128- if [[ "$dep" != "@stdlib"* ]]; then
129- continue
130- fi
131- dep=$(echo "$dep" | xargs)
132- if ! find lib -name "*.js" -exec grep -q "$dep" {} + && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
133- jq --indent 2 "del(.devDependencies[\"$dep\"])" ./package.json > ./package.json.tmp
134- mv ./package.json.tmp ./package.json
135- fi
136- done
127+
128+ # Set `devDependencies` to an empty object:
129+ jq --indent 2 '.devDependencies = {}' ./package.json > ./package.json.tmp
130+ mv ./package.json.tmp ./package.json
137131
138132 # Remove CLI section:
139133 find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?<section class=\"cli\">[\s\S]+?<\!\-\- \/.cli \-\->//"
Original file line number Diff line number Diff line change @@ -105,6 +105,12 @@ jobs:
105105 SLUG=${{ github.repository }}
106106 git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" --follow-tags
107107
108+ # Remove development dependencies from package.json:
109+ - name : ' Remove development dependencies from package.json'
110+ run : |
111+ jq --indent 2 '.devDependencies = {}' ./package.json > ./package.json.tmp
112+ mv ./package.json.tmp ./package.json
113+
108114 # Replace GitHub MathJax equations with SVGs:
109115 - name : ' Replace GitHub MathJax equations with SVGs'
110116 run : |
Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ jobs:
168168
169169 # Install Deno:
170170 - name : ' Install Deno'
171- # Pin action to full length commit SHA corresponding to v1.1.2
172- uses : denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31
171+ # Pin action to full length commit SHA
172+ uses : denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4
173173 with :
174174 deno-version : vx.x.x
175175
Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
225225[ npm-image ] : http://img.shields.io/npm/v/@stdlib/os-num-cpus.svg
226226[ npm-url ] : https://npmjs.org/package/@stdlib/os-num-cpus
227227
228- [ test-image ] : https://github.com/stdlib-js/os-num-cpus/actions/workflows/test.yml/badge.svg?branch=v0.2.0
229- [ test-url ] : https://github.com/stdlib-js/os-num-cpus/actions/workflows/test.yml?query=branch:v0.2.0
228+ [ test-image ] : https://github.com/stdlib-js/os-num-cpus/actions/workflows/test.yml/badge.svg?branch=v0.2.1
229+ [ test-url ] : https://github.com/stdlib-js/os-num-cpus/actions/workflows/test.yml?query=branch:v0.2.1
230230
231231[ coverage-image ] : https://img.shields.io/codecov/c/github/stdlib-js/os-num-cpus/main.svg
232232[ coverage-url ] : https://codecov.io/github/stdlib-js/os-num-cpus?branch=main
Original file line number Diff line number Diff line change 11{
22 "name" : " @stdlib/os-num-cpus" ,
3- "version" : " 0.2.0 " ,
3+ "version" : " 0.2.1 " ,
44 "description" : " Number of CPUs." ,
55 "license" : " Apache-2.0" ,
66 "author" : {
3939 "url" : " https://github.com/stdlib-js/stdlib/issues"
4040 },
4141 "dependencies" : {
42- "@stdlib/cli-ctor" : " ^0.1 .1" ,
43- "@stdlib/fs-read-file" : " ^0.2.0 "
42+ "@stdlib/cli-ctor" : " ^0.2 .1" ,
43+ "@stdlib/fs-read-file" : " ^0.2.1 "
4444 },
4545 "devDependencies" : {
46- "@stdlib/assert-is-browser" : " ^0.1.1 " ,
47- "@stdlib/assert-is-positive-integer" : " ^0.1 .0" ,
48- "@stdlib/assert-is-windows" : " ^0.1.1 " ,
49- "@stdlib/process-exec-path" : " ^0.1.1 " ,
50- "@stdlib/utils-global" : " ^0.1.1 " ,
46+ "@stdlib/assert-is-browser" : " ^0.2.0 " ,
47+ "@stdlib/assert-is-positive-integer" : " ^0.2 .0" ,
48+ "@stdlib/assert-is-windows" : " ^0.2.0 " ,
49+ "@stdlib/process-exec-path" : " ^0.2.0 " ,
50+ "@stdlib/utils-global" : " ^0.2.0 " ,
5151 "proxyquire" : " ^2.0.0" ,
5252 "tape" : " git+https://github.com/kgryte/tape.git#fix/globby" ,
5353 "istanbul" : " ^0.4.1" ,
You can’t perform that action at this time.
0 commit comments