Skip to content

chore(deps): update dependency eslint-plugin-n to v17.7.0 - autoclosed #331

chore(deps): update dependency eslint-plugin-n to v17.7.0 - autoclosed

chore(deps): update dependency eslint-plugin-n to v17.7.0 - autoclosed #331

Workflow file for this run

name: 🚀 Deploy Review App
on:
# Run this workflow on every PR event. Existing review apps will be updated when the PR is updated.
pull_request:
types: [ opened, reopened, synchronize, closed ]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_APP_REVIEW }}
# Set these to your Fly.io organization and preferred region.
FLY_REGION: ams
FLY_ORG: personal
jobs:
review_app:
name: 🚀 Deploy app to Fly.io
runs-on: ubuntu-latest
continue-on-error: true
outputs:
url: ${{ steps.deploy.outputs.url }}
# Only run one deployment at a time per PR.
concurrency:
group: pr-${{ github.event.number }}
# Deploying apps with this "review" environment allows the URL for the app to be displayed in the PR UI.
# Feel free to change the name of this environment.
environment:
name: review
# The script in the `deploy` sets the URL output for each review app.
url: ${{ steps.deploy.outputs.url }}
steps:
- name: Get code
uses: actions/checkout@v4
- name: Deploy PR app to Fly.io
id: deploy
uses: ./.github/actions/fly-pr-review-apps
with:
path: './apps/web'
config: ./fly.review.toml
name: suddenlygiovanni-dev-${{ github.event.number }}
secrets: GH_PACKAGES_TOKEN=${{ secrets.GH_PACKAGES_TOKEN }} GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
build_args: GH_PACKAGES_TOKEN=${{ secrets.GH_PACKAGES_TOKEN }}
- name: 🗑 Delete deployment environment
uses: strumwolf/delete-deployment-environment@v3
if: ${{ github.event.action == 'closed' }}
with:
# ⚠️ The provided token needs permission for admin write:org
token: ${{ secrets.GITHUB_TOKEN }}
environment: suddenlygiovanni-dev-${{ github.event.number }}