Skip to content

Commit dc19bdc

Browse files
author
James Pogran
authored
Merge pull request #655 from jpogran/maint-automate-release
(maint) Automate Publishing VS Code Extension
2 parents 8c6cbbe + b2fba9b commit dc19bdc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
env:
6+
NODE_VERSION: '12.x'
7+
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
8+
9+
jobs:
10+
build-and-deploy:
11+
name: Build and Deploy
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ env.NODE_VERSION }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ env.NODE_VERSION }}
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm run build --if-present
23+
npm run test --if-present
24+
- name: 'Deploy to Azure WebApp'
25+
run: |
26+
npm publish -p $VSCE_TOKEN

0 commit comments

Comments
 (0)