-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.04 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish Extension
on:
workflow_dispatch:
inputs:
preRelease:
type: boolean
required: true
default: false
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
name: Checkout repository
- uses: jozsefsallai/node-package-version@v1
name: get package version as env variable
- name: Create a tag
run: |
git config user.name = "Github Actions"
git config user.email = "actions@github.com"
git tag -a v${{ env.PACKAGE_VERSION }} -m "Version ${{ env.PACKAGE_VERSION }}"
git push origin v${{ env.PACKAGE_VERSION }}
- name: Generate Files
run: |
npm i
npm run build
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.AZURE_PAT }}
registryUrl: https://marketplace.visualstudio.com
preRelease: ${{ inputs.preRelease }}