From 03e20e0665d7b431e4f37d33a716c7af8a009800 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Thu, 14 Mar 2024 18:14:00 -0300 Subject: [PATCH 1/2] npm pre-release: add git-sha --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb0136bf0..98871c95e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -236,11 +236,15 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} ${{ steps.tag_name.outputs.tag }} --no-git-tag-version + - name: Test + working-directory: server + run: npm version preminor --preid next-$(git rev-parse --short HEAD) + - name: Publish LSP as pre-release to NPM if: github.ref == 'refs/heads/master' working-directory: server run: | - npm version preminor --preid next + npm version preminor --preid next-$(git rev-parse --short HEAD) npm publish --access public --tag next env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 08a2a1b6b9717480365e2ae810bdfc4a2d25bcde Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Thu, 14 Mar 2024 18:35:44 -0300 Subject: [PATCH 2/2] remove test --- .github/workflows/ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98871c95e..a7cf3b9d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -236,10 +236,6 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} ${{ steps.tag_name.outputs.tag }} --no-git-tag-version - - name: Test - working-directory: server - run: npm version preminor --preid next-$(git rev-parse --short HEAD) - - name: Publish LSP as pre-release to NPM if: github.ref == 'refs/heads/master' working-directory: server