From 95efb9b595d8e04039e09e58eb79836a0f96ee0a Mon Sep 17 00:00:00 2001 From: Danny Steenman Date: Thu, 14 Nov 2024 21:24:50 +0100 Subject: [PATCH] fix: revert pipeline steps --- .github/workflows/main.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d043819..bc813e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,15 +7,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" - name: Install Python run: | set -x -e @@ -34,22 +34,13 @@ jobs: # Update version npm version minor --force --no-git-tag-version - package_version=$(cat package.json | grep 'version":' | sed 's/[",]//g' | awk '{print $2}') + package_version=$(cat package.json|grep 'version":'|sed 's/[",]//g'|awk '{print $2}') cfn_release_rss_summary=$(python3 src/feed.py) - - # Install dependencies and prepare for publishing - npm install - npm run vscode:prepublish - - # Generate changelog - gitchangelog | tee "CHANGELOG.md" - - # Commit and push changes - git commit -am "build: auto-update snippets to version: $package_version" - git push - - # Create and push tag + git commit -am "$cfn_release_rss_summary" git tag $package_version + gitchangelog|tee "CHANGELOG.md" + git commit -am "Changelog version: $package_version" + git push git push origin --tags - name: Publish to Visual Studio Marketplace uses: HaaLeo/publish-vscode-extension@v1