Skip to content

Commit 109919e

Browse files
authored
Bundle job (#1348)
* Setup job that bundles the extension and archives it * Use docker image * Fix npm path
1 parent cfffa8f commit 109919e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ on:
66
workflow_dispatch:
77

88
jobs:
9+
package:
10+
name: Package Extension
11+
runs-on: ubuntu-latest
12+
container:
13+
image: swift:6.0-jammy
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
- name: Build Extension
18+
run: |
19+
export NODE_VERSION=v18.19.0
20+
export NODE_PATH=/usr/local/nvm/versions/node/v18.19.0/bin
21+
export NVM_DIR=/usr/local/nvm
22+
. .github/workflows/scripts/setup-linux.sh
23+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
24+
npm ci
25+
npm run compile
26+
npm run package
27+
- name: Archive production artifacts
28+
uses: actions/upload-artifact@v4
29+
if: always()
30+
with:
31+
name: vscode-swift-extension
32+
path: |
33+
*.vsix
934
tests_release:
1035
name: Test Release
1136
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main

0 commit comments

Comments
 (0)