-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (36 loc) · 1007 Bytes
/
release.yml
File metadata and controls
41 lines (36 loc) · 1007 Bytes
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
name: Release
on:
push:
branches: [ alpha, beta ]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '20' ]
name: Release with Node version ${{ matrix.node }}
steps:
- name: Checkout CLI
uses: actions/checkout@v4
with:
repository: apimatic/apimatic-cli
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false
fetch-depth: 0
path: cli
- name: setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
working-directory: cli
run: npm install
- name: Check Build
working-directory: 'cli'
run: npm run build
- name: Release
working-directory: cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm exec semantic-release