Skip to content

Commit

Permalink
Package and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
markhicken committed Aug 20, 2024
1 parent 789dba1 commit 88bb8a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Linting files
run: npm run lint
- name: Build
run: npm run package
- name: Get version from package.json
id: get_version
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: package-core-${{ env.VERSION }}
path: package-dist/package-core-${{ env.VERSION }}.zip
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "rm -rf dist && webpack --mode production",
"build:watch": "webpack --mode development --watch",
"sandbox": "concurrently -k -n webpack,sandbox -c \"bgBlue,bgMagenta\" \"npm run build:watch\" \"reactor-sandbox\"",
"package": "npm run build && npx @adobe/reactor-packager",
"package": "npm run build && npx --yes @adobe/reactor-packager --out package-dist/",
"lint": "eslint 'src/**'",
"test": "karma start",
"test:watch": "npm test -- --no-single-run --no-coverage",
Expand Down

0 comments on commit 88bb8a0

Please sign in to comment.