chore(deps): update dependency husky to v9.1.7 #41
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
name: Publish | |
on: | |
push: | |
branches: ["main"] | |
tags: ["v*.*.*"] | |
paths-ignore: ["*.md"] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Update extension information (dev) | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: npm run updateversion -- --environment dev --version "1.1.${{ github.run_number }}" | |
- name: Update extension information (prod) | |
if: ${{ contains(github.ref, 'refs/tags/') }} | |
run: npm run updateversion -- --environment prod --version "${{ github.ref_name }}" | |
- name: Run tests | |
run: npm run test | |
- name: Package extension | |
run: npm run package | |
- name: Publish to VS Marketplace (dev) | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: find .output/ -name '*.vsix' -exec npm run publish:dev -- -t ${{ secrets.marketplace_access_token }} --vsix {} \; | |
- name: Publish to VS Marketplace (prod) | |
if: ${{ contains(github.ref, 'refs/tags/') }} | |
run: find .output/ -name '*.vsix' -exec npm run publish:prod -- -t ${{ secrets.marketplace_access_token }} --vsix {} \; |