5353 - name : Type check
5454 run : pnpm tsc --noemit
5555
56- # - name: Run tests
57- # run: pnpm test:coverage
56+ - name : Run tests
57+ run : pnpm test:coverage
5858
5959 - name : Get previous commit hash
6060 run : |
@@ -139,7 +139,7 @@ jobs:
139139
140140 - name : Create release
141141 id : create_release
142- uses : softprops/action-gh-release@v1
142+ uses : softprops/action-gh-release@v2
143143 env :
144144 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
145145 with :
@@ -150,20 +150,8 @@ jobs:
150150 ./dist/${{ steps.create_package_filename.outputs.packageFilename }}.zip
151151 ./dist/manifest.json
152152
153- - name : Register release with apps registry
154- id : register_with_apps_registry
155- uses : fjogeleit/http-request-action@v1
156- with :
157- url : " https://apps.deskpro-service.com/register"
158- method : " POST"
159- customHeaders : ' {"Content-Type": "application/json", "x-api-key": "${{ secrets.APP_REGISTRY_KEY }}"}'
160- data : ' {"repositoryUrl": "${{ github.server_url }}/${{ github.repository }}", "type": "github"}'
161-
162- - name : Trigger release
163- id : trigger_release
164- uses : fjogeleit/http-request-action@v1
165- with :
166- url : " https://apps.deskpro-service.com/release"
167- method : " POST"
168- customHeaders : ' {"Content-Type": "application/json", "x-api-key": "${{ secrets.APP_REGISTRY_KEY }}"}'
169- data : ' {"repositoryUrl": "${{ github.server_url }}/${{ github.repository }}"}'
153+ release :
154+ uses : DeskproApps/app-template-vite/.github/workflows/subworkflow-release.yml@master
155+ secrets : inherit
156+ needs : [deskpro_app_test_and_build]
157+
0 commit comments