add two tsconfig for not creating tests in published version #34
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: write-all | |
name: Release | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Release | |
uses: justincy/[email protected] | |
id: release | |
- name: Print release output | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: echo Release ID ${{ steps.release.outputs.release_id }} | |
- name: Setup | |
uses: actions/[email protected] | |
with: | |
node-version: 16 | |
- name: Install Packages | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: npm install | |
- name: Lint | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: npm run lint | |
- name: Test | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: npm run test | |
- name: Prepublish | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: npm run vscode:prepublish | |
- name: Publish to VS Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
if: ${{ steps.release.outputs.released == 'true' }} | |
with: | |
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
registryUrl: https://marketplace.visualstudio.com | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v1 | |
if: ${{ steps.release.outputs.released == 'true' }} | |
with: | |
pat: ${{ secrets.OPEN_VSX_TOKEN }} |