File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,15 @@ jobs:
141141 - name : Build
142142 run : node --run build
143143
144- - name : Publish to npm
144+ - name : Pack npm tarball
145+ id : tarball
145146 working-directory : packages/language-server
146- run : npm publish --provenance --access public
147+ run : |
148+ TARBALL_NAME=$(npm pack --json --pack-destination "${RUNNER_TEMP}" | jq -r '.[0].filename')
149+ echo "tarball-path=${RUNNER_TEMP}/${TARBALL_NAME}" >> "${GITHUB_OUTPUT}"
150+
151+ - name : Publish to npm
152+ run : npm publish "${{ steps.tarball.outputs.tarball-path }}" --provenance --access public
147153
148154 - name : Extract changelog
149155 id : changelog
@@ -163,4 +169,5 @@ jobs:
163169 tag_name : ' @stylelint/language-server@${{ needs.detect.outputs.server-version }}'
164170 name : ' @stylelint/language-server ${{ needs.detect.outputs.server-version }}'
165171 body : ${{ steps.changelog.outputs.body }}
172+ files : ${{ steps.tarball.outputs.tarball-path }}
166173 make_latest : false
You can’t perform that action at this time.
0 commit comments