Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Massive update: New features, Node 20, much less dependencies, bug fixes, more tests #384

Open
wants to merge 107 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
42d5538
🎉 adding compression before PREBUILT upload
mountainash Dec 23, 2023
33b762e
🧹 Allow build from UI + deps updates & removal
mountainash Dec 23, 2023
6ca42b2
🐛 Lint fixes: EOFL
mountainash Dec 23, 2023
13fb2b2
🔑 Using own token
mountainash Dec 23, 2023
58dac99
👷‍♂️ beta: npm updates. package meta additions. minification
mountainash Dec 23, 2023
087a934
👷‍♂️ chore: GHActions version updates
mountainash Dec 23, 2023
6479826
⏮️ reverting release meta
mountainash Dec 23, 2023
3012823
👷‍♂️ GHActions syntax fix
mountainash Dec 23, 2023
36d32cf
👷‍♂️ Removed 2 deps. Updated to use latest @actions/github
mountainash Dec 24, 2023
1126dcf
👷‍♂️ unminified
mountainash Dec 24, 2023
1d58199
💅 docs: spelling. YAML formatting. Vercel domain. INPUT_ hint
mountainash Dec 24, 2023
8af10c0
👷‍♂️ updated to node20
mountainash Dec 24, 2023
2ced72e
👷‍♂️ fix: JS substring update
mountainash Dec 24, 2023
96e166e
🔖 version bump
mountainash Dec 24, 2023
924ce29
👷‍♂️ fix: commandArguments.push('--prebuilt') double up
mountainash Dec 24, 2023
f2998b1
🗑️ remove Stale workflow - hate these!
mountainash Dec 24, 2023
b210ad2
🔖 Bumped to Version 2. Logged differences
mountainash Dec 24, 2023
18e2eb9
👷‍♂️ Added Debug Action for in project testing
mountainash Dec 24, 2023
ddc0c60
Merge pull request #1 from mountainash/feat/debug-vercel-deploy
mountainash Dec 24, 2023
5ae8d6a
👷‍♂️ npm to install
mountainash Dec 24, 2023
4917065
👷‍♂️ Remove yarn caching
mountainash Dec 24, 2023
aee2780
👷‍♂️ adding missing env
mountainash Dec 24, 2023
1c5e3fe
Setting node version. Fix: step output links
mountainash Mar 5, 2024
7c6b5f4
feat: added defaults & acronym casing
mountainash Mar 6, 2024
50def85
📝 Update README & CHANGELOG
mountainash Mar 6, 2024
d5afa6d
👷 Build static site output in the Workflow
mountainash Mar 6, 2024
fa86218
👷 Remove unnded EnvVar definition
mountainash Mar 6, 2024
2d8a150
📦 Remove dotenv
mountainash Mar 6, 2024
55580e8
📝 README formatting & consitency. Added contributor sponsor link
mountainash Mar 6, 2024
d83e24a
👷 Removed need to pass `GITHUB_REPOSITORY`
mountainash Mar 6, 2024
d6a8954
📦 Removed @vercel
mountainash Mar 6, 2024
d252e95
📦 Added NodeJS types
mountainash Mar 6, 2024
0423313
👷 ALIAS_DOMAINS allowed on PRs
mountainash Mar 11, 2024
6a2c977
👷 Added emojis for easier log debugging. Replace backticks where not …
mountainash Mar 11, 2024
5818fac
👷 Using actions/toolkit for exec
mountainash Mar 11, 2024
4a3dab1
👷 Using actions/toolkit for exec
mountainash Mar 11, 2024
109a3a6
🔨 Fix: EditorConfig conflicted with Eslint rules
mountainash Mar 11, 2024
aa6a534
🔨 Fix: `match` test check
mountainash Mar 11, 2024
8f16b47
🔨 Fix: possible name clash
mountainash Mar 11, 2024
a8a9c28
🔨 Fix: deploy output clean
mountainash Mar 11, 2024
ae0d1ab
🔨 Outputting stdout. Lookahead regex fix
mountainash Mar 11, 2024
2d43acb
👷 explicit vercel deploy command
mountainash Mar 11, 2024
b3cde51
🔨 fixes from #232
mountainash Mar 11, 2024
f1b8ad7
:hammer: exec output refactor
mountainash Mar 11, 2024
0a6da14
:construction_worker: call `vercel` through `npx`
mountainash Mar 11, 2024
5f14dbf
:construction_worker: Added basic Workflow Summary
mountainash Mar 11, 2024
a951a91
:construction_worker: Exporting `PREVIEW_URL` and `DEPLOYMENT_UNIQUE_…
mountainash Mar 11, 2024
4ea5650
:construction_worker: Using @actions/core to correctly get boolean an…
mountainash Mar 11, 2024
9248f0f
:nail_care: Quick cleanup of Workflow Summary
mountainash Mar 11, 2024
192fd71
:hammer: Fix: removing empty default
mountainash Mar 11, 2024
8993566
:nail_care: More emojis in Logs. Fix for no Labels set. Proper table …
mountainash Mar 12, 2024
25cda42
:hammer: Arrays need a different test
mountainash Mar 12, 2024
72a7e22
🔨 Arrays need a different test
mountainash Mar 12, 2024
391adfe
💅 Nicer looking Workflow summary
mountainash Mar 12, 2024
ffcab5c
:nail_care: Alignment on displayed labels. Markdown fixes
mountainash Mar 12, 2024
c13b429
📝 Updated to use `develop` tag
mountainash Mar 15, 2024
9f9a8b0
✨ Adding some sparkles to highlight the main changes in this fork
mountainash Mar 15, 2024
e9eb65d
💅 nicer output of multiple domain alias's in summary
mountainash Mar 28, 2024
1a8f5ec
⚙️ Added config settings for YML and MD files
mountainash Mar 29, 2024
2f5bf3a
🆕 Ability to set runtime EnvVars on Vercel
mountainash Mar 29, 2024
dea5d56
👷 Added check for RUNTIME_ENV API Errors
mountainash Apr 1, 2024
281a3f1
👷 check for branch named "null"
mountainash Apr 1, 2024
cfe002c
🧹 Updated repo references
mountainash Apr 1, 2024
3b30acb
👷 removed sheduled tasks
mountainash Apr 1, 2024
09d5047
:construction_worker: check for if GITHUB_DEPLOYMENT_ENV == "false"
mountainash Apr 11, 2024
bd136cd
:hammer: need to check that GITHUB_DEPLOYMENT_ENV is not "" (nothing)
mountainash Apr 11, 2024
29e2613
:hammer: need to test GITHUB_DEPLOYMENT_ENV for " " (space)
mountainash Apr 11, 2024
278a05f
:construction_worker: added debugging to setEnvironment()
mountainash Apr 11, 2024
8d831e7
:construction_worker: adding built code
mountainash Apr 11, 2024
65a8b65
Merge pull request #2 from mountainash/feat/runtime-envvars
mountainash Apr 11, 2024
0e3945f
:nail_care: Docs: Added usage instructions. URL fixes. Fixes some spe…
mountainash Apr 11, 2024
3f61453
:construction_worker: replacing underscores in domain names with hyphen
mountainash Apr 11, 2024
32b4ded
Merge pull request #6 from mountainash/fix/underscore_in_alias
mountainash Apr 11, 2024
d754553
:package: devDependencies updates
mountainash Apr 12, 2024
d56e657
:construction_worker: Default branch renamed from `master` to `main`
mountainash Apr 12, 2024
e0cd752
:hammer: Remove test for `[skip ci]` as it's defaultly supported by G…
mountainash Apr 12, 2024
38846ab
:new: Updated to eslint v9
mountainash Apr 12, 2024
c8b83a5
:hammer: Node workflow updated to use latest version of node
mountainash Apr 12, 2024
9e1ea60
Merge pull request #7 from mountainash/eslint_v9
mountainash Apr 12, 2024
88294a9
:memo: `secrets.GH_PAT` replaced with `secrets.GITHUB_TOKEN`
mountainash Apr 12, 2024
7b4e0b7
:construction_worker: GHActions workflows updated to use cache built …
mountainash Apr 12, 2024
d789ebc
:memo: bad merge & typo fixes
mountainash Apr 12, 2024
93d3219
🔨 better formatting of Alias info in logos, doesn't make the comma fo…
mountainash Apr 26, 2024
6f05b0a
⚙️ allow blank issues
mountainash Apr 26, 2024
5600394
👷 falsey test for ALIAS_DOMAIN values
mountainash Apr 26, 2024
7b8acd4
⚙️ Renamed git project
mountainash May 7, 2024
5d5202f
⚙️ GitHub discussions enabled
mountainash May 7, 2024
2649834
📦 [email protected]
mountainash May 7, 2024
230baa0
👷 truncate long ALIAS_DOMAINS values
mountainash May 7, 2024
2c07823
👷 better PR comment. Less duplication of domains in Summary
mountainash May 7, 2024
df54461
Merge pull request #10 from mountainash/mountainash/issue9
mountainash May 7, 2024
691ae22
Merge branch 'main' into feat/comment-formatting
mountainash May 7, 2024
97a9906
Merge pull request #11 from mountainash/feat/comment-formatting
mountainash May 7, 2024
e50a539
🐛 better check of "falsey" strings
mountainash May 7, 2024
ae0d84b
🔨 adding better ALIAS debug tests
mountainash May 7, 2024
0e89328
🔨 removing comments from ALIAS array
mountainash May 7, 2024
b45f21b
:hammer: adding debugging
mountainash May 7, 2024
69ec228
🔨 more check/debug for falsey domains
mountainash May 7, 2024
d2859cf
🔨 syntax change
mountainash May 7, 2024
b5ee475
🔨 reverting to for loop
mountainash May 7, 2024
2dba61f
🔨 cleaning " & ' from domain
mountainash May 7, 2024
c829790
🔨 not converting to lowercase as substitutions fail
mountainash May 7, 2024
87bbb7f
🧹 refactor of deploymentURLs
mountainash May 7, 2024
b2bef01
:bug: setting `all` placeholder
mountainash May 7, 2024
395c993
👷 Comments & Summary don't show empty rows
mountainash May 7, 2024
d68b6ad
📝 reduce README size remove yml name and filename
mountainash May 7, 2024
3afe7a4
🔨 fixing markdown formatting
mountainash May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

[*.{md, yml, yaml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
1 change: 0 additions & 1 deletion .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ko_fi: betahuhn
github: betahuhn
github: [betahuhn, mountainash]
custom: ['https://www.buymeabeer.com/mountainash']
20 changes: 12 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,29 @@ labels: bug

---

**🐞 Describe the bug**
### 🐞 Describe the bug

A clear and concise description of what the bug is.

**📚 To Reproduce**
### 📚 To Reproduce

Steps to reproduce the behavior.
Steps to reproduce the behaviour.

**💡 Expected behavior**
### 💡 Expected behaviour

A clear and concise description of what you expected to happen.

**🖼️ Screenshots**
### 🖼️ Screenshots

If applicable, add screenshots to help explain your problem.

**⚙️ Environment**
- Action version: [e.g. v1.0.0]
### ⚙️ Environment

**📋 Additional context**
- Action version: (eg. v1.0.0)
- Node.js version: (eg. 12.0.0)
- Prebuilt or building on Vercel
- Library (eg. Next.js, Nuxt.js, etc.)

### 📋 Additional context

Add any other context about the problem here.
9 changes: 4 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
blank_issues_enabled: false
contact_links:
- name: 📚 Docs
url: https://github.com/BetaHuhn/deploy-to-vercel-action#-usage
about: Checkout the documentation.
url: https://github.com/mountainash/deploy-to-vercel-action#-usage
about: Checkout the documentation
- name: 🚀 Feature Request
url: https://github.com/BetaHuhn/deploy-to-vercel-action/discussions/new?category=ideas
url: https://github.com/mountainash/deploy-to-vercel-action/discussions/new?category=ideas
about: Share ideas for new features
- name: ❓ Ask a Question
url: https://github.com/BetaHuhn/deploy-to-vercel-action/discussions/new?category=q-a
url: https://github.com/mountainash/deploy-to-vercel-action/discussions/new?category=q-a
about: Ask the community for help
80 changes: 80 additions & 0 deletions .github/workflows/debug-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Debug Action CI

on:
push:
workflow_dispatch:
inputs:
ref:
description: 'Ref to run the workflow on'
required: true
default: 'refs/heads/main'

jobs:
debug:
name: Debug Action CI
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write
deployments: write

steps:
- name: Checkout ${{ github.event.inputs.ref }} 📥
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install Vercel CLI 📦
run: npm i -g vercel

- name: Pull Vercel environment information 🔑
run: npx vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Make sample website 📄
env:
LOCAL_REF: ${{ github.event.inputs.ref }}
BUILD_DIR: .vercel/output/static
run: mkdir -p $BUILD_DIR/ && touch $BUILD_DIR/index.html && echo "LOCAL_REF=$LOCAL_REF" > $BUILD_DIR/index.html

- name: Make sample config 📄
env:
CONFIG_DIR: .vercel/output
run: |
touch $CONFIG_DIR/config.json
echo "{\"version\": 3}" > $CONFIG_DIR/config.json

- name: Deploy to Vercel 🚀
id: verceldeploy
uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
ALIAS_DOMAINS: |
""
"false"
"null"
false
null
a-really-really-really-really-really-really-really-really-really-long-alias.vercel.app
{REPO}-{BRANCH}.vercel.app
{USER}-{REPO}-{SHA}.vercel.app
RUNTIME_ENV: |
LATEST_SHA=${{ github.sha }}
DEBUG_URL=https://api.example.com
PREBUILT: true

- name: Deploy to Vercel outputs ✍️
run: |
echo "PREVIEW_URL: ${{ steps.verceldeploy.outputs.PREVIEW_URL }}"
echo "DEPLOYMENT_URLS: ${{ steps.verceldeploy.outputs.DEPLOYMENT_URLS }}"
echo "COMMENT_CREATED: ${{ steps.verceldeploy.outputs.COMMENT_CREATED }}"
echo "DEPLOYMENT_INSPECTOR_URL: ${{ steps.verceldeploy.outputs.DEPLOYMENT_INSPECTOR_URL }}"
echo "DEPLOYMENT_UNIQUE_URL: ${{ steps.verceldeploy.outputs.DEPLOYMENT_UNIQUE_URL }}"
16 changes: 0 additions & 16 deletions .github/workflows/dependabot.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/latest-tag.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Tag CI

on:
release:
types: [published, edited]
types:
- published
- edited

jobs:
latest:
name: Latest
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Update latest tag
uses: Actions-R-Us/actions-tagger@latest
env:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish_latest_tag: true
31 changes: 15 additions & 16 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
name: Node CI

on:
push:
branches-ignore:
- master
pull_request:
branches-ignore:
- master

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

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14
- name: Cache node modules
uses: c-hive/gha-npm-cache@v1
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run lint command
run: npm run lint

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

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14
- name: Cache node modules
uses: c-hive/gha-npm-cache@v1
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run build command
run: npm run build
13 changes: 0 additions & 13 deletions .github/workflows/release-scheduler.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/release.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/stale.yml

This file was deleted.

Loading