Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'on': | |
release: | |
types: | |
- created | |
jobs: | |
release: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: '${{ matrix.os }}' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- run: npm install | |
- run: npm run publish -- --target linux-x64 | |
if: matrix.os == 'ubuntu-latest' | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- run: npm run publish -- --target darwin-x64 darwin-arm64 | |
if: matrix.os == 'macos-latest' | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- run: npm run publish -- --target win32-x64 | |
if: matrix.os == 'windows-latest' | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |