chore: Update package.json description to include Typescript and PHP … #36
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: Test Build VSCode Extension | |
on: | |
push: | |
paths: | |
- "vscode/**" | |
- ".github/workflows/vscode-package.yml" | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
vscode-extension-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Install Dependencies | |
working-directory: ./vscode | |
run: npm install --save-exact --save-dev esbuild | |
- name: Package VS Code Extension | |
working-directory: ./vscode | |
run: npm run vscode:prepublish | |
- name: Package Extension | |
id: package-extension | |
uses: nhedger/package-vscode-extension@v1 | |
with: | |
preRelease: true | |
extensionPath: vscode | |
- name: Upload Extension Artifact | |
uses: actions/upload-artifact@v4 | |
id: artifact-upload | |
with: | |
name: vscode-extension | |
path: ${{ steps.package-extension.outputs.packagePath }} | |
- name: Send Download Link to Slack | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "Download the latest VSCode extension here: ${{ steps.artifact-upload.outputs.artifact-url}}" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |