Skip to content

Commit 88bb8a0

Browse files
committed
Package and upload
1 parent 789dba1 commit 88bb8a0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/dev.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ jobs:
4444
github-token: ${{ secrets.GITHUB_TOKEN }}
4545
- name: Linting files
4646
run: npm run lint
47+
- name: Build
48+
run: npm run package
49+
- name: Get version from package.json
50+
id: get_version
51+
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
52+
- name: Upload build artifacts
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: package-core-${{ env.VERSION }}
56+
path: package-dist/package-core-${{ env.VERSION }}.zip

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build": "rm -rf dist && webpack --mode production",
1616
"build:watch": "webpack --mode development --watch",
1717
"sandbox": "concurrently -k -n webpack,sandbox -c \"bgBlue,bgMagenta\" \"npm run build:watch\" \"reactor-sandbox\"",
18-
"package": "npm run build && npx @adobe/reactor-packager",
18+
"package": "npm run build && npx --yes @adobe/reactor-packager --out package-dist/",
1919
"lint": "eslint 'src/**'",
2020
"test": "karma start",
2121
"test:watch": "npm test -- --no-single-run --no-coverage",

0 commit comments

Comments
 (0)