Skip to content

Commit 7f79c71

Browse files
committed
Aktiver build pipeline check-change-compat-typescript-client.
1 parent 1239e25 commit 7f79c71

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/build.yaml

+25-25
Original file line numberDiff line numberDiff line change
@@ -88,31 +88,31 @@ jobs:
8888
# naiserator_file: deploy/dev-gcp.yml
8989
# secrets: inherit
9090

91-
# check-change-compat-typescript-client:
92-
# name: Change and compatibility check typescript client
93-
# runs-on: ubuntu-latest
94-
# needs: [build-typescript-client, deploy-dev]
95-
# outputs:
96-
# hasChanged: ${{ steps.compare-with-published.outputs.hasChanged }}
97-
# permissions:
98-
# contents: read
99-
# packages: read
100-
# steps:
101-
# - uses: actions/download-artifact@v4
102-
# with:
103-
# name: ung-sak-typescript-client-src
104-
# path: /tmp/ung-sak-typescript-client
105-
# - uses: navikt/openapi-ts-clientmaker/extra/actions/compare-with-published@v1
106-
# id: compare-with-published
107-
# with:
108-
# localPath: /tmp/ung-sak-typescript-client
109-
# npmPackageName: ung-sak-typescript-client
110-
# githubToken: ${{ secrets.GITHUB_TOKEN }}
111-
# - uses: navikt/ung-sak-web/.github/actions/check-compat-typescript-client@master
112-
# if: steps.compare-with-published.outputs.hasChanged == 'true'
113-
# with:
114-
# readerToken: ${{ secrets.READER_TOKEN }}
115-
# newClientPath: /tmp/ung-sak-typescript-client
91+
check-change-compat-typescript-client:
92+
name: Change and compatibility check typescript client
93+
runs-on: ubuntu-latest
94+
needs: [build-typescript-client]
95+
outputs:
96+
hasChanged: ${{ steps.compare-with-published.outputs.hasChanged }}
97+
permissions:
98+
contents: read
99+
packages: read
100+
steps:
101+
- uses: actions/download-artifact@v4
102+
with:
103+
name: ung-sak-typescript-client-src
104+
path: /tmp/ung-sak-typescript-client
105+
- uses: navikt/openapi-ts-clientmaker/extra/actions/compare-with-published@v1
106+
id: compare-with-published
107+
with:
108+
localPath: /tmp/ung-sak-typescript-client
109+
npmPackageName: ung-sak-typescript-client
110+
githubToken: ${{ secrets.GITHUB_TOKEN }}
111+
- uses: navikt/k9-sak-web/.github/actions/check-compat-typescript-client@master
112+
if: steps.compare-with-published.outputs.hasChanged == 'true'
113+
with:
114+
readerToken: ${{ secrets.READER_TOKEN }}
115+
newClientPath: /tmp/ung-sak-typescript-client
116116

117117
# publish-typescript-client:
118118
# name: Publish typescript client

0 commit comments

Comments
 (0)