Skip to content

Use node 16 as fallback #10

Use node 16 as fallback

Use node 16 as fallback #10

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20 # Ensure the Node.js version matches your task runtime
- name: Install Dependencies
run: npm install
working-directory: tasks/retire
- name: Patch vss-extension.json
uses: onlyutkarsh/[email protected]
with:
files: vss-extension.json
patch-syntax: = /version => "1.2.${{ github.run_number }}"
fail-if-no-files-patched: true
- name: Patch task.json
uses: onlyutkarsh/[email protected]
with:
files: tasks/retire/task.json
patch-syntax: |
= /version/Major => "1"
= /version/Minor => "2"
= /version/Patch => "${{ github.run_number }}"
fail-if-no-files-patched: true
- name: TfxInstaller
uses: Maetis/[email protected]
- name: Build vsix
run: tfx extension create --manifest-globs vss-extension.json
- name: Create Release
if: ${{ github.event_name == 'push' }}
uses: softprops/action-gh-release@v2
with:
files: |
./elmahio.retire-extension-1.2.${{ github.run_number }}.vsix
tag_name: 1.2.${{ github.run_number }}
name: 1.2.${{ github.run_number }}
draft: false
fail_on_unmatched_files: true
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}