Chore(deps): Bump colord from 2.9.3 to 2.10.0 in /apps/maps #313
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and publish apps/maps | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - '.github/workflows/deploy-apps-maps.yml' | |
| - 'apps/maps/**' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/deploy-apps-maps.yml' | |
| - 'apps/maps/**' | |
| workflow_dispatch: | |
| jobs: | |
| build-apps-maps: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v1 | |
| - uses: actions/setup-node@v3 | |
| - run: | | |
| npm install | |
| npm run build | |
| working-directory: apps/maps | |
| # Production | |
| - name: Deploy apps/maps production to Netlify | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| run: | | |
| npm install --location=global netlify-cli@17.x.x | |
| netlify deploy --site=embeddable-maps-calitp-org --dir=apps/maps/build --prod --auth=${NETLIFY_AUTH_TOKEN} | |
| env: | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| # Preview on PRs | |
| - name: Deploy apps/maps preview to Netlify | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| npm install --location=global netlify-cli@17.x.x | |
| netlify deploy --site=embeddable-maps-calitp-org --dir=apps/maps/build --alias=${GITHUB_REPOSITORY#*/}-${PR_NUMBER} --auth=${NETLIFY_AUTH_TOKEN} | |
| env: | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| PR_NUMBER: ${{ github.event.number }} | |
| - uses: peter-evans/find-comment@v4 | |
| if: ${{ github.event_name == 'pull_request' }} | |
| id: fc | |
| with: | |
| issue-number: ${{ github.event.number }} | |
| body-includes: --embeddable-maps-calitp-org.netlify.app | |
| - uses: peter-evans/create-or-update-comment@v5 | |
| if: ${{ github.event_name == 'pull_request' }} | |
| with: | |
| comment-id: ${{ steps.fc.outputs.comment-id }} | |
| issue-number: ${{ github.event.number }} | |
| body: "Preview url: https://${{github.event.repository.name}}-${{ github.event.number }}--embeddable-maps-calitp-org.netlify.app" | |
| edit-mode: replace |