Skip to content

Commit

Permalink
ci(client): use action to automatically generate and publish client o…
Browse files Browse the repository at this point in the history
…n github (#24)

* ci(client): use action to automatically generate and publish client on github

* ci(client): added new token, set npm registry
  • Loading branch information
TheChristophe committed Sep 14, 2023
1 parent 96f866a commit 6042662
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/publish-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ jobs:
name: API Specification
path: api-spec.json

- run: mkdir -p ./eosc-perf-api-spec

- name: Push api-spec.json to api spec repository
run: ../scripts/push-json-spec.sh eosc-perf-automation eosc-perf-api-spec "${message}" github.com "${GITHUB_REF_NAME}"
working-directory: ./eosc-perf-api-spec
env:
message: ${{ github.event.head_commit.message }}
GIT_TOKEN: ${{secrets.AUTOMATED_CLIENT_TOKEN}}
- name: Generate & publish client
uses: thechristophe/generate-esm-api-client@v1
with:
author: EOSC-Performance
package_name: '@eosc-perf/eosc-perf-client'
spec_file: api-spec.json
repo_url: git+ssh://git@github.com/${{ github.repository }}.git
npm_token: ${{ secrets.NPM_TOKEN }}
snapshot: true
npm_registry: https://registry.npmjs.org

0 comments on commit 6042662

Please sign in to comment.