1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v4
22- - uses : actions/setup-node@v4
23- with :
24- node-version-file : package.json
2522 - run : npm install
2623 - run : npm run build --if-present
2724 - run : npm pack --dry-run
@@ -34,18 +31,12 @@ jobs:
3431 needs : Pack
3532 steps :
3633 - uses : actions/download-artifact@v4
37- - uses : actions/setup-node@v4
38- with :
39- node-version-file : artifact/package.json
4034 - run : npx publint ./artifact
4135 Webpack :
4236 runs-on : ubuntu-latest
4337 needs : Pack
4438 steps :
4539 - uses : actions/download-artifact@v4
46- - uses : actions/setup-node@v4
47- with :
48- node-version-file : artifact/package.json
4940 - run : npm install --omit=dev ./artifact
5041 - run : echo "$IMPORT_STATEMENT" > index.js
5142 - run : webpack --entry ./index.js
5546 needs : Pack
5647 steps :
5748 - uses : actions/download-artifact@v4
58- - uses : actions/setup-node@v4
59- with :
60- node-version-file : artifact/package.json
6149 - run : npm install --omit=dev ./artifact
6250 - run : echo "$IMPORT_STATEMENT" > index.js
6351 - run : >
7058 needs : Pack
7159 steps :
7260 - uses : actions/download-artifact@v4
73- - uses : actions/setup-node@v4
74- with :
75- node-version-file : artifact/package.json
7661 - run : npm install --omit=dev ./artifact rollup@4 @rollup/plugin-json @rollup/plugin-node-resolve
7762 - run : echo "$IMPORT_STATEMENT" > index.js
7863 - run : npx rollup -p node-resolve -p @rollup/plugin-json index.js
8166 needs : Pack
8267 steps :
8368 - uses : actions/download-artifact@v4
84- - uses : actions/setup-node@v4
85- with :
86- node-version-file : artifact/package.json
8769 - run : npm install --omit=dev ./artifact
8870 - run : echo '<script type="module">$IMPORT_STATEMENT</script>' > index.html
8971 - run : npx vite build
9375 needs : Pack
9476 steps :
9577 - uses : actions/download-artifact@v4
96- - uses : actions/setup-node@v4
97- with :
98- node-version-file : artifact/package.json
9978 - run : echo '{}' > package.json
10079 - run : echo "$IMPORT_STATEMENT" > index.js
10180 - run : npm install --omit=dev ./artifact
10584 needs : Pack
10685 steps :
10786 - uses : actions/download-artifact@v4
108- - uses : actions/setup-node@v4
109- with :
110- node-version-file : artifact/package.json
11187 - run : echo '{"type":"module"}' > package.json
11288 - run : npm install --omit=dev ./artifact @sindresorhus/tsconfig
11389 - run : echo "$IMPORT_STATEMENT" > index.ts
0 commit comments