Giter Club home page Giter Club logo

deploy-to-vercel-action's Introduction

Hi there πŸ‘‹

My name is Maximilian (@betahuhn), I am a 21 year old developer & designer from Germany (:de:). I am currently helping push the limit of personal and cloud computing @deta.

I also love working on open-source projects and have developed multiple NPM libraries, GitHub Actions and other projects such as WebCrate. I'm also an avid photographer, so check out the gallery on my website mxis.ch/gallery.

⚑ My Work

You can find all of my projects on GitHub or on my website mxis.ch. Also take a look at my Dribbble profile for some of my designs.

πŸ”¨ The tools I use

.html, .js, .css, .vue, .svelte, .ts, .go, .git, .sh, .fig

πŸ“« How to reach me

If you have questions or just want to say hi, dm me on Twitter.

See you around ✌

deploy-to-vercel-action's People

Contributors

armandabric avatar asennikov avatar bahrmichael avatar betahuhn avatar betahuhnbot avatar boredland avatar carlosflorencio avatar dependabot[bot] avatar elindorath avatar jeromefitz avatar kmnowak avatar merott avatar rafiksargsyan avatar siilwyn avatar wizyma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deploy-to-vercel-action's Issues

PR_PREVIEW_DOMAIN does not use the vercel team

🐞 Describe the bug

I'm unable to use a PR preview domain (the PR_PREVIEW_DOMAIN option) when the project is link to a team.

Without the PR_PREVIEW_DOMAIN the project is correctly deployed:

      - name: Deploy to Vercel
        uses: BetaHuhn/deploy-to-vercel-action@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
          VERCEL_ORG_ID: team_xxxxxxxxxxxxxx
          VERCEL_PROJECT_ID: xxxxxxxxxxxx
          GITHUB_DEPLOYMENT: false
          PR_LABELS: false
          DELETE_EXISTING_COMMENT: false

When I add the PR_PREVIEW_DOMAIN:

          PR_PREVIEW_DOMAIN: '{REPO}-{PR}.vercel.app'

I got this error:

Error: undefinedVercel CLI 23.1.2
Error! Failed to find deployment "ibe-ak7jds436-gogaille.vercel.app" under armandabric

armandabric is my personal vercel account. And the ibe project is a project of one of my Vercel team.

πŸ–ΌοΈ Screenshots

image

βš™οΈ Environment

  • Action version: [e.g. v1.0.0]

PREVIEW defaults to false on pull requests

🐞 Describe the bug

In the docs you say that the default value for PRODUCTION is "true (false for PR deployments)", but when I use this action from a pull request, it creates a production deployment on vercel.

πŸ“š To Reproduce

Create a pull request on a repository with an ordinary github action like this:

name: Vercel Preview Deployment

on: [push]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      # Check out the code
      - name: Checkout
        uses: actions/checkout@v4

      # Deploy on vercel
      - name: Deploy to Vercel
        uses: BetaHuhn/deploy-to-vercel-action@v1

πŸ’‘ Expected behavior

Creates a preview deployment

πŸ–ΌοΈ Screenshots

N/A

βš™οΈ Environment

I am using BetaHuhn/deploy-to-vercel-action@v1

πŸ“‹ Additional context

N/A

Vercel Deploy hangs on the step when using Alias Domain and PR Preview Domain

ALIAS_DOMAINS, PR_PREVIEW_DOMAIN

Verified that if I use "ALIAS_DOMAINS" it causes the hang up during "Assigning custom domains to Vercel deployment"

PR_PREVIEW_DOMAIN seems to be fine but doesn't do anything without ALIAS_DOMAINS it seems so it does not hang.

Screen Shot 2022-06-08 at 5 50 14 PM

steps:
- name: Deply to Vercel
id: DeployVercelAction
uses: BetaHuhn/[email protected]
with:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Required
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #Optional
VERCEL_ORG_ID: ${{ secrets.ORG_ID}} #Required
VERCEL_PROJECT_ID: ${{ secrets.PROJECT_ID}} #Required
PRODUCTION: false
GITHUB_DEPLOYMENT_ENV: Preview
ALIAS_DOMAINS: |
jung.vercel.app
{BRANCH}-jung.vercel.app
PR_PREVIEW_DOMAIN: "{BRANCH}-jung.vercel.app"

`FORCE` option unrecognized

In the docs you have the FORCE option to skip vercels build cache. But when used throws the following warning:

Screen Shot 2022-07-02 at 15 45 26

Error: Cannot read property 'login' of null

While deploying I get the following error, do you have any ideas?

Error: Cannot read property 'login' of null

Screen Shot 2022-06-21 at 01 26 07

The deploy script is basically copy'n'paste from the docs:

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy to Vercel CI

on:
  workflow_dispatch:
  push:
    branches: [develop]

jobs:
  deploy:
    runs-on: ubuntu-latest
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Deploy
        uses: BetaHuhn/deploy-to-vercel-action@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GH_PAT }}
          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
          VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
          VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
          PRODUCTION: false

Commit message `commands` are unescaped

🐞 Describe the bug

Running a commit that contains backticks (`), cause the action to fail because the shell seems to try and run what is contained within the backticks.

πŸ“š To Reproduce
Create a commit with e.g. the message: Switch to ESM format to remove need on dependency fsx

Deploy using this action using default config (no custom options), result:

Error: Command failed: vercel -t *** -m "githubCommitAuthorName=Selwyn" -m "githubCommitAuthorLogin=Siilwyn" -m "githubCommitMessage=Switch to ESM format to remove need on dependency `fsx`" -m "githubCommitOrg=voorhoede" -m "githubCommitRepo=life-terra-platform" -m "githubCommitRef=paginate-translations" -m "githubCommitSha=0aa1994f696737ebe462c6fab9931ce937382c5c" -m "githubOrg=voorhoede" -m "githubRepo=life-terra-platform" -m "githubDeployment=1"
/bin/sh: 1: fsx: not found

Error: undefinedVercel CLI 31.2.2

Hello, I have been using this action with no problems, and now I just did a small update since I want the build to point to a specific environment to fetch content from a CMS. When adding the BUILD_ENV option to the action, it returns the reported error when running the workflow.

Adding this to the action yml:
image

Generates this error:
image

Removing the BUILD_ENV removes the error.

Hangs indefinitely when token is expired

🐞 Describe the bug

Action hangs indefinitely when Vercel token is expired.

πŸ“š To Reproduce

Run action with expired token.

πŸ’‘ Expected behavior

Action should fail and/or alert the user that the token is expired.

βš™οΈ Environment

  • Action version: 1.9.10

Error: undefinedVercel CLI 28.0.1

Hello, since 28.0.1 is live since yesterday, and my CD with github action not working anymore since 28.0.1 I wonder the action need an update.

Do you have any idea beceause I can't use a custom version. Thanks :)

Run BetaHuhn/[email protected] Creating GitHub deployment Deployment #629186761 created Deployment #629186761 status changed to "pending" Creating deployment with Vercel CLI Setting environment variables for Vercel CLI Starting deploy with Vercel CLI Error: undefinedVercel CLI 28.0.1 Retrieving project…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.