Skip to content

Commit

Permalink
Run publish-action script as afterShipIt hook rather than whenever a …
Browse files Browse the repository at this point in the history
…release runs
  • Loading branch information
ghengeveld committed Dec 18, 2023
1 parent fa2d355 commit 55a26c2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"lint": "yarn lint:js .storybook bin-src node-src test-stories ./isChromatic.js ./isChromatic.mjs",
"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 && yarn run publish-action",
"release": "yarn run build && auto shipit",
"publish-action": "./scripts/publish-action.mjs",
"trace": "./dist/bin.js trace",
"trim-stats": "./dist/bin.js trim-stats-file",
Expand Down Expand Up @@ -108,6 +108,7 @@
"@actions/core": "^1.10.0",
"@actions/github": "^5.0.0",
"@antfu/ni": "^0.21.5",
"@auto-it/exec": "^11.0.4",
"@discoveryjs/json-ext": "^0.5.7",
"@storybook/addon-essentials": "^6.5.6",
"@storybook/builder-webpack5": "^6.5.6",
Expand Down Expand Up @@ -207,7 +208,13 @@
},
"plugins": [
"npm",
"released"
"released",
[
"exec",
{
"afterShipIt": "yarn run publish-action"
}
]
]
},
"docs": "https://www.chromatic.com/docs/cli",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@
typescript-memoize "^1.0.0-alpha.3"
url-join "^4.0.0"

"@auto-it/exec@^11.0.4":
version "11.0.4"
resolved "https://registry.yarnpkg.com/@auto-it/exec/-/exec-11.0.4.tgz#97efbc9fbc14f2b777ef874c029a40fda8be7a3e"
integrity sha512-n/kB8k/dwci9UeTsLCs8mig8ZQuS2dMHcHlsKXBeM18EmcbGHxDxyaPeMHJsnSlfKNmGtCXhHBHBhGVP18Ia+w==
dependencies:
"@auto-it/core" "11.0.4"
endent "^2.1.0"
fp-ts "^2.5.3"
fromentries "^1.2.0"
io-ts "^2.1.2"
tslib "2.1.0"

"@auto-it/npm@11.0.4":
version "11.0.4"
resolved "https://registry.yarnpkg.com/@auto-it/npm/-/npm-11.0.4.tgz#67b6bf78fb6d3f814365796f15541b014db73fcb"
Expand Down

0 comments on commit 55a26c2

Please sign in to comment.