Skip to content

Commit

Permalink
Read from process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Oct 2, 2023
1 parent 84047b7 commit 93c5fda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions scripts/publish-action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ const publishAction = async ({ repo, tag, version }) => {
* release action <canary | next | latest> [--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') {
Expand Down

0 comments on commit 93c5fda

Please sign in to comment.