diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fce4122..bd64bfc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,11 @@ name: Release new package -on: +on: push: branches: - master tags: - - 'v*' - + - "v*" + jobs: build: runs-on: ubuntu-latest @@ -19,8 +19,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' - + node-version: "18" + - name: Install dependencies run: npm install @@ -29,11 +29,6 @@ jobs: git config --global user.email "rajesh@hyperoot.dev" git config --global user.name "hyp3r00t" - - name: Package VSCode extension - run: | - npm install -g vsce - vsce package - - name: Auto-increment version and tag id: versioning run: | @@ -48,6 +43,11 @@ jobs: git push origin HEAD git push origin ${{ env.new_tag }} + - name: Package VSCode extension + run: | + npm install -g vsce + vsce package + - name: Create Release id: create_release uses: ncipollo/release-action@v1 @@ -56,4 +56,4 @@ jobs: name: Release ${{ env.new_tag }} artifacts: ./*.vsix draft: false - prerelease: false \ No newline at end of file + prerelease: false