Skip to content

Commit 9ca140c

Browse files
ci: upload server tarball to github releases (#901)
1 parent 8183201 commit 9ca140c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)