-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (45 loc) · 1.39 KB
/
release-apiv2-client_copy.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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release AirOne APIv2 client npm package to GitHub npm Registry
on:
pull_request:
paths:
- ".github/workflows/release-apiv2-client_copy.yml"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
pull-requests: write
if: ${{ github.event.label.name == 'release-apiv2-client' }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: apt-get
run: |
sudo apt-get update
sudo apt-get install libldap2-dev libsasl2-dev libxmlsec1-dev libmysqlclient-dev pkg-config
- uses: actions/setup-python@v4
with:
python-version: "3.11.5"
- name: venv
run: |
python3 -m venv virtualenv
source virtualenv/bin/activate
pip install pip --upgrade
pip install poetry
poetry install --no-ansi
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: "@dmm-com"
- name: install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: generate client
run: |
source virtualenv/bin/activate
poetry run npm run generate:client