File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Extension
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build-extension :
8+ name : Build extension artifact
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - uses : actions/setup-node@v4
14+
15+ - name : Build
16+ id : build
17+ run : |
18+ EXTENSION_VERSION=$(cat source/manifest.json | jq -r .version)
19+ echo "extension-version=${EXTENSION_VERSION}" >> $GITHUB_OUTPUT
20+
21+ npm install
22+ npm run build
23+
24+ cd distribution
25+ zip -r ../open-in-bundle-viewer-v${EXTENSION_VERSION}.zip *
26+
27+ - name : Archive
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : open-in-bundle-viewer-v${{steps.build.outputs.extension-version}}
31+ path : open-in-bundle-viewer-v${{steps.build.outputs.extension-version}}.zip
You can’t perform that action at this time.
0 commit comments