Update generate.yml

This commit is contained in:
Asim Aslam
2021-10-27 16:05:48 +01:00
committed by GitHub
parent f591d5756f
commit 018c51caa8

View File

@@ -45,14 +45,12 @@ jobs:
run: |
go install
- name: install postman converter
- name: install prettier
working-directory: services
run: |
sudo npm install -g openapi-to-postmanv2
sudo npm install -g prettier
openapi2postmanv2 -h
- name: Generate package
- name: Generate clients
working-directory: services
if: github.ref == 'refs/heads/master'
env:
@@ -63,19 +61,6 @@ jobs:
go install;
cd ../..;
clients .
- name: Generate beta package
working-directory: services
if: github.ref == 'refs/heads/beta'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
IS_BETA: yup
run: |
pwd
cd cmd/clients;
go install;
cd ../..;
clients .
- uses: EndBug/add-and-commit@v7
with: