Skip to content

Commit

Permalink
chore: use github core package for getting inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Nov 20, 2022
1 parent 719fd2c commit 248bfed
Show file tree
Hide file tree
Showing 7 changed files with 3,810 additions and 222 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
.DS_Store
dist
.eslintcache
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [
"@remix-run/eslint-config",
"@remix-run/eslint-config/node",
"@remix-run/eslint-config/internal",
],
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.DS_Store
.eslintcache
25 changes: 21 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
name: 'Release Announcement Action'
description: 'automatically comment on released pull requests and linked issues'
name: "Release Announcement Action"
description: "automatically comment on released pull requests and linked issues"
runs:
using: 'node16'
main: 'dist/index.js'
using: "node16"
main: "dist/index.js"
inputs:
default-branch:
description: "The default branch of the repository"
default: "main"
nightly-branch:
description: "The nightly (dev) branch of the repository"
required: true
default: "dev"
package-version-to-follow:
description: "The package version to follow"
required: true
awaiting-release-label:
description: "The label to add to pull requests after they've been merged to the nightly branch"
default: "awaiting release"
version:
description: "The version of the release"
required: true
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "ncc build src/index.ts --license licenses.txt"
"build": "ncc build src/index.ts --license licenses.txt",
"lint": "eslint --cache --fix --ignore-path .eslintignore .",
"format": "prettier --write --ignore-path .eslintignore ."
},
"author": "Logan McAnsh <[email protected]> (https://mcan.sh/)",
"license": "MIT",
Expand All @@ -17,10 +19,13 @@
"semver": "^7.3.8"
},
"devDependencies": {
"@remix-run/eslint-config": "1.7.6",
"@tsconfig/node16": "^1.0.3",
"@types/node": "^18.11.9",
"@types/semver": "^7.3.13",
"@vercel/ncc": "^0.34.0",
"eslint": "8.28.0",
"eslint-plugin-prefer-let": "3.0.1",
"prettier": "^2.7.1",
"typescript": "^4.8.4"
}
Expand Down
Loading

0 comments on commit 248bfed

Please sign in to comment.