Skip to content

Commit

Permalink
[+] Add github actions release and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
aofdev committed May 4, 2021
1 parent e5a9187 commit 69b4af7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release and Publish

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install the dependencies
run: npm install

- name: Install vsce
run: npm install -g vsce

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
run: npx semantic-release

- name: Publish
run: vsce publish -p $VSCE_TOKEN
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

0 comments on commit 69b4af7

Please sign in to comment.