Skip to content

Commit 01ef9db

Browse files
committed
👷 add a build workflow
1 parent 237d5ba commit 01ef9db

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)