File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,13 +112,6 @@ jobs:
112112 npm install -g npm
113113 yarn install --immutable
114114
115- - name : Move release tag to HEAD
116- if : ${{ github.event.inputs.publish_only == 'true' }}
117- run : |
118- tag=$(git describe --abbrev=0)
119- echo "Moving tag $tag to HEAD"
120- git tag -f "$tag"
121-
122115 - name : List packages to publish
123116 if : ${{ github.event.inputs.publish_only == 'true' }}
124117 run : ${GITHUB_WORKSPACE}/node_modules/.bin/lerna ls --json
@@ -155,12 +148,21 @@ jobs:
155148 run : yarn build:mcp
156149
157150 - name : publish to npm
151+ if : ${{ github.event.inputs.publish_only != 'true' }}
158152 run : |
159153 ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish from-git ${{ (github.event.inputs.snapshot == 'true' && '--pre-dist-tag dev') || '' }}
160154 env :
161155 GH_TOKEN : ${{ secrets.ACCESS_TOKEN }}
162156 NPM_CONFIG_PROVENANCE : true
163157
158+ - name : publish to npm (from-package)
159+ if : ${{ github.event.inputs.publish_only == 'true' }}
160+ run : |
161+ ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish from-package
162+ env :
163+ GH_TOKEN : ${{ secrets.ACCESS_TOKEN }}
164+ NPM_CONFIG_PROVENANCE : true
165+
164166 # ## Semantic Release Bot comments for issues and PRs ###
165167 - name : Add release comments to issues and PRs
166168 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
You can’t perform that action at this time.
0 commit comments