Skip to content

Commit

Permalink
Fixed path param and bumped version to v14
Browse files Browse the repository at this point in the history
  • Loading branch information
eydelrivero committed Oct 24, 2022
1 parent 7ed0bae commit cfedeb6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50336,9 +50336,12 @@ async function run() {
const gchat_webhook = core.getInput('gchat_webhook');
const npm_token = core.getInput('npm_token');
const access = core.getInput('access');
const path = core.getInput('path') ?? `.`;
const path = core.getInput('path');
const octokit = github.getOctokit(github_token);

if (!path || path === '') {
path = '.'
}
const pathToPackage = `${path}/package.json`;

const pkg = await fse.readJSON(pathToPackage);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mean-dao-publish",
"version": "13.0.0",
"version": "14.0.0",
"description": "GitHub Action to release and publish packages",
"main": "src/index.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ async function run() {
const gchat_webhook = core.getInput('gchat_webhook');
const npm_token = core.getInput('npm_token');
const access = core.getInput('access');
const path = core.getInput('path') ?? `.`;
const path = core.getInput('path');
const octokit = github.getOctokit(github_token);

if (!path || path === '') {
path = '.'
}
const pathToPackage = `${path}/package.json`;

const pkg = await fse.readJSON(pathToPackage);
Expand Down

0 comments on commit cfedeb6

Please sign in to comment.