Skip to content

Commit

Permalink
Fixed working dirs in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Jul 9, 2024
1 parent e36c490 commit 70424a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ jobs:
run: apimatic sdk:generate --destination=sdks/ts --platform TYPESCRIPT --file=openapi.yaml

- name: Set publishing coordiates
working-directory: ./sdks/ts/openapi_sdk_typescript
run: jq -r -s '.[0] * .[1]' package.json package-patch.json > tmp.json && mv -f tmp.json package.json

- name: Authenticate with private NPM package
working-directory: ./sdks/ts/openapi_sdk_typescript
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc

- name: Install project dependencies
run: npm ci
working-directory: ./sdks/ts/openapi_sdk_typescript
run: npm i

- name: Publish to GitHub Packages NPM
working-directory: ./sdks/ts/openapi_sdk_typescript
run: npm publish --scope=wiremock-inc --registry=https://npm.pkg.github.com


0 comments on commit 70424a4

Please sign in to comment.