Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hinashi committed Feb 1, 2024
1 parent 6b39f2b commit b38ee54
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release-apiv2-client_copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit b38ee54

Please sign in to comment.