https://github.com/single-spa/action-deploy-to-import-map-deployer
Github action for deploying to import-map-deployer
https://github.com/single-spa/action-deploy-to-import-map-deployer
Last synced: about 1 month ago
JSON representation
Github action for deploying to import-map-deployer
- Host: GitHub
- URL: https://github.com/single-spa/action-deploy-to-import-map-deployer
- Owner: single-spa
- License: mit
- Created: 2024-10-11T21:31:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T03:06:16.000Z (over 1 year ago)
- Last Synced: 2025-04-09T14:08:25.081Z (over 1 year ago)
- Language: JavaScript
- Size: 382 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# action-deploy-to-import-map-deployer
Github action for deploying microfrontends or import maps to [import-map-deployer](https://github.com/single-spa/import-map-deployer). Note that this action does not upload files to a CDN - it only calls import-map-deployer to update the import map. Uploading files to CDN should be done before using this Github action
## Usage
Add a `uses: single-spa/action-deploy-to-import-map-deployer@v1` step to your Github workflow
### Example PATCH service
[Example repo](https://github.com/react-microfrontends/api/blob/main/.github/workflows/build_and_deploy.yml)
```yml
- name: Update Import Map
uses: single-spa/action-deploy-to-import-map-deployer@v1
with:
host: ${{ secrets.DEPLOYER_HOST }}
username: ${{ secrets.DEPLOYER_USERNAME }}
password: ${{ secrets.DEPLOYER_PASSWORD }}
environment-name: react
service-name: "@org-name/${{ github.event.repository.name }}"
service-url: "https://react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }}/react-mf-${{ github.event.repository.name }}.js"
service-integrity: sha256-example
service-integrity-file-path: react-mf-${{ github.event.repository.name }}.js
```
### Example PATCH import-map
```yml
- name: Update Import Map
uses: single-spa/action-deploy-to-import-map-deployer@v1
with:
host: ${{ secrets.DEPLOYER_HOST }}
username: ${{ secrets.DEPLOYER_USERNAME }}
password: ${{ secrets.DEPLOYER_PASSWORD }}
environment-name: react
import-map-path: app.importmap
```
## Inputs
See [action.yml](/action.yml) for a list of all required and optional inputs