From 69b4af765ca116376e59214bbd5dfb98202d4745 Mon Sep 17 00:00:00 2001 From: aofdev Date: Tue, 4 May 2021 15:21:42 +0700 Subject: [PATCH] [+] Add github actions release and publish --- .github/workflows/release-publish.yaml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release-publish.yaml diff --git a/.github/workflows/release-publish.yaml b/.github/workflows/release-publish.yaml new file mode 100644 index 0000000..fcdeb11 --- /dev/null +++ b/.github/workflows/release-publish.yaml @@ -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 }} \ No newline at end of file