-
-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (37 loc) · 1.06 KB
/
release.yaml
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
35
36
37
38
39
40
41
42
43
44
name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: elixir-tools
bump-minor-pre-major: true
- name: Checkout
uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- name: Install Node.js
uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- name: publish to visual studio marketplace
if: ${{ steps.release.outputs.release_created }}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: npx vsce publish
- name: publish to open vsx
if: ${{ steps.release.outputs.release_created }}
run: npx ovsx publish --yarn -p ${{ secrets.OPEN_VSX_PAT }}