Skip to content

Fix/issue 78 is latest not set #185

Fix/issue 78 is latest not set

Fix/issue 78 is latest not set #185

Workflow file for this run

name: CI/CD - Development
permissions:
contents: read
packages: write
on:
pull_request:
jobs:
build_package:
name: "Build and Package Extension"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 20.x
uses: actions/setup-node@v5
with:
node-version: 20.x
- name: Build UploadBOM
run: |
npm install
npm run build
npm prune --production
working-directory: UploadBOM
- name: Run Tests
run: |
npm install
npm test
working-directory: UploadBOM
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: Coverage-Report
path: UploadBOM/coverage
- name: Package task
if: ${{ ! startsWith(github.head_ref, 'dependabot/') }}
run: |
npm install
npm install -g tfx-cli@latest
tfx --version
node version-bump.js --token ${{ secrets.marketplace_access_token }} --release-type dev
tfx extension create --output-path PackageOutput
- name: Upload vsix Artifact
if: ${{ ! startsWith(github.head_ref, 'dependabot/') }}
uses: actions/upload-artifact@v4
with:
name: Extension-Package
path: PackageOutput
publish_marketplace:
name: "Publish to VS Marketplace"
if: ${{ ! startsWith(github.head_ref, 'dependabot/') }}
needs: build_package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 20.x
uses: actions/setup-node@v5
with:
node-version: 20.x
- name: Install Dependencies
run: |
npm install -g tfx-cli@latest
tfx --version
- name: Download artifact
uses: actions/download-artifact@v5
with:
name: Extension-Package
path: package
- name: Publish to marketplace
run: |
find ./package -name '*.vsix' -exec tfx extension publish --publisher eshaar-me-dev -t ${{ secrets.marketplace_access_token }} --vsix {} \;