Github Action: Updated dist files #3
This file contains hidden or 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: Build | |
on: | |
push: | |
workflow_dispatch: | |
# Allow one concurrent deployment | |
concurrency: | |
group: environment-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove old files and folders | |
run: | | |
rm -rf package-lock.json | |
rm -rf dist | |
rm -rf *.vsix | |
- name: install node v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install NPM | |
run: npm install | |
- name: Compile vsix package | |
run: | | |
npm run vscode:package | |
- name: Commit Distribution Files | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Github Action: Updated dist files" |