Skip to content

Commit b38ee54

Browse files
committed
test
1 parent 6b39f2b commit b38ee54

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release AirOne APIv2 client npm package to GitHub npm Registry
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/release-apiv2-client_copy.yml"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
pull-requests: write
15+
if: ${{ github.event.label.name == 'release-apiv2-client' }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.event.pull_request.head.ref }}
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
21+
- name: apt-get
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install libldap2-dev libsasl2-dev libxmlsec1-dev libmysqlclient-dev pkg-config
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.11.5"
28+
- name: venv
29+
run: |
30+
python3 -m venv virtualenv
31+
source virtualenv/bin/activate
32+
pip install pip --upgrade
33+
pip install poetry
34+
poetry install --no-ansi
35+
- uses: actions/setup-node@v3
36+
with:
37+
node-version: 16
38+
registry-url: https://npm.pkg.github.com/
39+
scope: "@dmm-com"
40+
- name: install dependencies
41+
run: npm ci
42+
env:
43+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
44+
- name: generate client
45+
run: |
46+
source virtualenv/bin/activate
47+
poetry run npm run generate:client

0 commit comments

Comments
 (0)