mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Add build steps for VS Code extension in CI and release workflows
- Introduced a new job to build the VS Code extension in both CI and release workflows. - Set up Node.js environment and installed dependencies for the extension. - Added steps to package the extension and upload it to the release and artifacts. - Renamed the packaged extension file for clarity.
This commit is contained in:
parent
255b346470
commit
332566bea3
2 changed files with 55 additions and 0 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
|
@ -50,6 +50,26 @@ jobs:
|
||||||
target
|
target
|
||||||
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
build-vscode:
|
||||||
|
name: Build VS Code Extension
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
working-directory: vscode-rojo
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Package Extension
|
||||||
|
working-directory: vscode-rojo
|
||||||
|
run: npx --yes @vscode/vsce package --no-dependencies
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
name: Check MSRV
|
name: Check MSRV
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
35
.github/workflows/release.yml
vendored
35
.github/workflows/release.yml
vendored
|
|
@ -46,6 +46,41 @@ jobs:
|
||||||
name: Atlas.rbxm
|
name: Atlas.rbxm
|
||||||
path: Atlas.rbxm
|
path: Atlas.rbxm
|
||||||
|
|
||||||
|
build-vscode:
|
||||||
|
needs: ["create-release"]
|
||||||
|
name: Build VS Code Extension
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
working-directory: vscode-rojo
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Package Extension
|
||||||
|
working-directory: vscode-rojo
|
||||||
|
run: npx --yes @vscode/vsce package --no-dependencies
|
||||||
|
|
||||||
|
- name: Rename Extension
|
||||||
|
run: mv vscode-rojo/*.vsix atlas.vsix
|
||||||
|
|
||||||
|
- name: Upload Extension to Release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh release upload ${{ github.ref_name }} atlas.vsix
|
||||||
|
|
||||||
|
- name: Upload Extension to Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: atlas.vsix
|
||||||
|
path: atlas.vsix
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: ["create-release"]
|
needs: ["create-release"]
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue