Skip to content

ovsx-preview--publish-vscode-built-in-extensions #1145

ovsx-preview--publish-vscode-built-in-extensions

ovsx-preview--publish-vscode-built-in-extensions #1145

name: ovsx-preview--publish-vscode-built-in-extensions
on:
schedule:
- cron: "30 0 * * *"
push:
branches:
- master
env:
NODE_OPTIONS: --max-old-space-size=8192
jobs:
linux:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OVSX_PAT: ${{ secrets.OVSX_PAT}}
steps:
- uses: actions/checkout@v1
- run: |
git submodule init
git submodule update
name: Checkout VS Code
# should be aligned with https://github.com/microsoft/vscode/blob/8031c495a65de120560d27703c415eb44c3a99a1/.github/workflows/ci.yml#L22-L32
- run: |
sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libkrb5-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
sudo cp vscode/build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
sudo chmod +x /etc/init.d/xvfb
sudo update-rc.d xvfb defaults
sudo service xvfb start
name: Setup Build Environment
- uses: actions/setup-node@v1
with:
node-version: 18
- run: |
cd vscode
git fetch --tags
git reset --hard origin/main
name: Reset to latest vscode main
- run: |
yarn
yarn build:extensions
name: Bundle Extensions from vscode main
- run: yarn package-vsix:next
name: Package Preview Version of Extensions
- run: yarn create-extension-pack:next
name: Create built-in extensions pack
# - run: yarn publish:vsix
# name: Publish Extensions to open-vsx.org