Skip to content

chore: bump doc-detective-resolver version to 3.6.1 #101

chore: bump doc-detective-resolver version to 3.6.1

chore: bump doc-detective-resolver version to 3.6.1 #101

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Test (& Publish)
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
release:
types:
- published
workflow_dispatch:
jobs:
test:
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
# - ubuntu-latest Ubuntu omitted because GitHub Actions' Ubuntu image doesn't have compatible X server
- windows-latest
- macos-latest
node:
- 22
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
cache-dependency-path: package-lock.json
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
publish-vsc:
if: github.event_name == 'release' && github.event.action == 'published'
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
cache-dependency-path: package-lock.json
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
# # Package the VSIX file
# - name: Package VSIX
# run: npx vsce package
# # Upload VSIX to release
# - name: Upload VSIX to Release
# uses: softprops/action-gh-release@v2
# with:
# files: "*.vsix"
# tag_name: ${{ github.event.release.tag_name }}
# token: ${{ secrets.DD_DEP_UPDATE_TOKEN }}
# Publish to VS Code Marketplace
- name: Publish to VS Code Marketplace
run: npx vsce publish --no-yarn
env:
VSCE_PAT: ${{secrets.VSCODE_MARKETPLACE_TOKEN}}