Skip to content

Commit

Permalink
chore: enable prerelease builds
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Hakanson <[email protected]>
  • Loading branch information
hakanson committed Mar 25, 2024
1 parent f35429b commit 6ece341
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and Test

on:
push:
branches: [ main ]
branches: [ main, prerelease ]
pull_request:
branches: [ main ]
branches: [ main, prerelease ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -69,7 +69,12 @@ jobs:
xvfb-run -a npm run test
- name: Package VSIX
run: npm run package
run: |
if [ $GITHUB_REF_NAME == "prerelease" ]; then
npm run package-prerelease
else
npm run package
fi
- name: Upload VSIX as a workflow artifact
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
"lint": "eslint src --ext ts",
"test": "vscode-test",
"package": "vsce package",
"package-prerelease": "vsce package --pre-release",
"wasm-build": "cd vscode-cedar-wasm && wasm-pack build --target nodejs",
"wasm-pkg": "cd vscode-cedar-wasm/pkg && npm pack && mv *.tgz ../.."
},
Expand Down

0 comments on commit 6ece341

Please sign in to comment.