From 93c5fda77d5592385f654e4295a7ab2017469b8c Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Mon, 2 Oct 2023 22:52:04 +0200 Subject: [PATCH] Read from process.env --- package.json | 2 +- scripts/publish-action.mjs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5aec31f09..546748208 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "lint:js": "cross-env NODE_ENV=production eslint --fix --cache --cache-location=.cache/eslint --ext .js,.json,.mjs,.ts,.cjs --report-unused-disable-directives", "lint:package": "sort-package-json", "release": "yarn run build && auto shipit", - "publish-action": "./scripts/publish-action.mjs $ARG_0 $ARG_1 $ARG_2 $ARG_3", + "publish-action": "./scripts/publish-action.mjs", "trace": "./dist/bin.js trace", "trim-stats": "./dist/bin.js trim-stats-file", "storybook": "start-storybook -p 9009 -s static", diff --git a/scripts/publish-action.mjs b/scripts/publish-action.mjs index 216471b6d..09e3f5591 100755 --- a/scripts/publish-action.mjs +++ b/scripts/publish-action.mjs @@ -34,9 +34,8 @@ const publishAction = async ({ repo, tag, version }) => { * release action [--dry-run] */ (async () => { - const [data] = process.argv.slice(2); - - console.log(JSON.parse(data)); + console.log(process.env.ARG_0); + console.log(process.env.ARG_1); return; // if (tag === 'canary') {