Skip to content

Commit abb584a

Browse files
Create compiled release
1 parent 2f58d37 commit abb584a

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- main
7+
- release_test
8+
tags:
9+
- "v*.*.*"
810

911
jobs:
1012
release:
@@ -48,6 +50,12 @@ jobs:
4850
# run: pnpm release.pkg-pr-new
4951
# env:
5052
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
#
54+
55+
- name: Upload Release Assets
56+
uses: softprops/action-gh-release@v2
57+
with:
58+
files: 'lib.tar.gz'
5159

5260
- name: Create Release Pull Request or Publish
5361
if: github.ref == 'refs/heads/main'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ node_modules/
2424
.idea
2525
.history
2626
tests/integrations/load-scripts-on-main-thread/snippet.js
27+
lib.tar.gz

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
],
6262
"scripts": {
6363
"build": "tsc && rollup -c scripts/rollup.config.js",
64-
"build.prod": "tsc && rollup -c scripts/rollup.config.js --configReleaseBuild",
64+
"build.prod": "tsc && rollup -c scripts/rollup.config.js --configReleaseBuild && tar -zcvf lib.tar lib && gzip lib.tar",
6565
"build.site": "cd docs && npm i && npm run build",
6666
"build.watch": "rollup -c scripts/rollup.config.js -w --configDev",
6767
"change": "changeset",

0 commit comments

Comments
 (0)