Skip to content

Commit

Permalink
chore(ci): Prepare @swc/minifier (#8027)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Sep 29, 2023
1 parent 537932b commit 8214b9e
Show file tree
Hide file tree
Showing 25 changed files with 1,137 additions and 119 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish (node)
name: Publish (core)

env:
DEBUG: napi:*
Expand Down Expand Up @@ -205,17 +205,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: |
bindings-${{ matrix.settings.target }}
path: |
swc*
if-no-files-found: error
# Separate step for fail-fast
- name: Upload minifier artifacts
uses: actions/upload-artifact@v3
with:
name: |
minifier-${{ matrix.settings.target }}
name: bindings-${{ matrix.settings.target }}
path: |
swc*
if-no-files-found: error
Expand Down Expand Up @@ -469,7 +459,6 @@ jobs:
npm config set provenance true
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
(cd ./packages/minifier && npm publish --access public)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
Loading

1 comment on commit 8214b9e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 8214b9e Previous: b6b5a4d Ratio
es/full/bugs-1 275102 ns/iter (± 2583) 278862 ns/iter (± 3578) 0.99
es/full/minify/libraries/antd 1318521059 ns/iter (± 15535694) 1353554952 ns/iter (± 10182675) 0.97
es/full/minify/libraries/d3 273599669 ns/iter (± 7159486) 283460191 ns/iter (± 2938261) 0.97
es/full/minify/libraries/echarts 1045250218 ns/iter (± 9958916) 1099467088 ns/iter (± 17611243) 0.95
es/full/minify/libraries/jquery 83977148 ns/iter (± 329319) 85060756 ns/iter (± 678263) 0.99
es/full/minify/libraries/lodash 97436571 ns/iter (± 157526) 98546037 ns/iter (± 649606) 0.99
es/full/minify/libraries/moment 49720752 ns/iter (± 357443) 50078757 ns/iter (± 187449) 0.99
es/full/minify/libraries/react 18005136 ns/iter (± 92710) 17992100 ns/iter (± 103423) 1.00
es/full/minify/libraries/terser 216751277 ns/iter (± 583051) 223080466 ns/iter (± 1398051) 0.97
es/full/minify/libraries/three 384344625 ns/iter (± 1901744) 403650246 ns/iter (± 5235454) 0.95
es/full/minify/libraries/typescript 2645353468 ns/iter (± 10687292) 2735459690 ns/iter (± 22964253) 0.97
es/full/minify/libraries/victory 567467876 ns/iter (± 4184440) 594201831 ns/iter (± 12736655) 0.96
es/full/minify/libraries/vue 119417047 ns/iter (± 2683822) 121159371 ns/iter (± 362446) 0.99
es/full/codegen/es3 34329 ns/iter (± 141) 34401 ns/iter (± 115) 1.00
es/full/codegen/es5 34275 ns/iter (± 140) 34515 ns/iter (± 59) 0.99
es/full/codegen/es2015 34362 ns/iter (± 65) 34438 ns/iter (± 148) 1.00
es/full/codegen/es2016 34254 ns/iter (± 122) 34520 ns/iter (± 581) 0.99
es/full/codegen/es2017 34247 ns/iter (± 82) 34454 ns/iter (± 59) 0.99
es/full/codegen/es2018 34364 ns/iter (± 157) 34497 ns/iter (± 85) 1.00
es/full/codegen/es2019 34283 ns/iter (± 129) 34445 ns/iter (± 102) 1.00
es/full/codegen/es2020 34308 ns/iter (± 99) 34351 ns/iter (± 107) 1.00
es/full/all/es3 165651725 ns/iter (± 710876) 166601785 ns/iter (± 1114750) 0.99
es/full/all/es5 158321742 ns/iter (± 1141284) 159043419 ns/iter (± 1256193) 1.00
es/full/all/es2015 118194302 ns/iter (± 1816704) 117251819 ns/iter (± 518084) 1.01
es/full/all/es2016 117275947 ns/iter (± 600779) 115934163 ns/iter (± 1051511) 1.01
es/full/all/es2017 115455982 ns/iter (± 681033) 116395705 ns/iter (± 1430889) 0.99
es/full/all/es2018 113896739 ns/iter (± 519485) 114312507 ns/iter (± 877398) 1.00
es/full/all/es2019 113517013 ns/iter (± 1355946) 113254980 ns/iter (± 712679) 1.00
es/full/all/es2020 109968865 ns/iter (± 720229) 109398180 ns/iter (± 816934) 1.01
es/full/parser 494442 ns/iter (± 4356) 491544 ns/iter (± 5805) 1.01
es/full/base/fixer 21039 ns/iter (± 230) 18240 ns/iter (± 121) 1.15
es/full/base/resolver_and_hygiene 81898 ns/iter (± 115) 80749 ns/iter (± 354) 1.01
serialization of serde 287 ns/iter (± 0) 283 ns/iter (± 0) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.