-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 1.06 KB
/
release.yml
File metadata and controls
34 lines (29 loc) · 1.06 KB
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
# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository.
name: Release
on:
pull_request:
types: [closed]
branches:
- main
workflow_dispatch:
jobs:
create-release:
runs-on: ubuntu-latest
if: (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')) || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18.18.0"
- name: Install dependencies
run: npm install
working-directory: ee/automation
- name: Create release
env:
VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }}
VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }}
VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }}
run: npm run create-release
working-directory: ee/automation