Skip to content

Commit e60fa6c

Browse files
author
Joel Denning
committed
Switch to github action for updating import map
1 parent 494bb9f commit e60fa6c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,11 @@ jobs:
6868
destination: react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }}
6969

7070
- name: Update Import Map
71-
run: curl -u ${{ secrets.DEPLOYER_USERNAME }}:${{ secrets.DEPLOYER_PASSWORD }} -d '{ "service":"@react-mf/${{ github.event.repository.name }}","url":"https://react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }}/react-mf-${{ github.event.repository.name }}.js" }' -X PATCH ${{ secrets.DEPLOYER_HOST }}/services\?env=react -H "Accept:application/json" -H "Content-Type:application/json" --fail --insecure -i
71+
uses: single-spa/action-deploy-to-import-map-deployer@v1
72+
with:
73+
host: ${{ secrets.DEPLOYER_HOST }}
74+
username: ${{ secrets.DEPLOYER_USERNAME }}
75+
password: ${{ secrets.DEPLOYER_PASSWORD }}
76+
service-name: "@react-mf/${{ github.event.repository.name }}"
77+
service-url: "https://react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }}/react-mf-${{ github.event.repository.name }}.js"
78+
service-integrity-file-path: react-mf-${{ github.event.repository.name }}.js

0 commit comments

Comments
 (0)