Skip to content

Commit 284f1f2

Browse files
committed
fix github flow for publishing typescript model
1 parent 43dbb88 commit 284f1f2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release-typescript-models.yaml

+8-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: Checkout devfile/api
1414
uses: actions/checkout@v2
15+
with:
16+
path: api
1517

1618
- name: Setup python
1719
uses: actions/setup-python@v2
@@ -26,17 +28,16 @@ jobs:
2628
scope: '@devfile'
2729

2830
- name: Generate typescript model
29-
run: ./build/typescript-model/generate.sh
30-
31-
- name: Build typescript model
32-
run: yarn && yarn build
33-
working-directory: ./build/typescript-model/workdir/typescript-models
31+
run: |
32+
./build/typescript-model/generate.sh
33+
cp -r ./build/typescript-model/workdir/typescript-models ../
34+
working-directory: api
3435

3536
- name: Release typescript models
3637
run: |
3738
VERSION=$(cat $GITHUB_WORKSPACE/api/schemas/latest/jsonSchemaVersion.txt)
38-
yarn --new-version version "$VERSION-$(date +%s)"
39+
yarn --new-version version "$VERSION-$(date +%s)" --no-git-tag-version
3940
yarn publish --access public
4041
env:
4142
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
42-
working-directory: ./build/typescript-model/workdir/typescript-models
43+
working-directory: ./typescript-models

0 commit comments

Comments
 (0)