From f1a6f213cc417ce0a7306b3853c73a9359813787 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 10 Jun 2024 17:31:59 +0200 Subject: [PATCH 1/4] CI: Use action-gh-release for autopublishing --- .github/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b17d2d4a2..83c10ed6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -285,21 +285,23 @@ jobs: - name: Publish latest master to GitHub if: github.ref == 'refs/heads/master' - uses: marvinpinto/action-automatic-releases@latest + uses: softprops/action-gh-release@v2 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-master" + token: "${{ secrets.GITHUB_TOKEN }}" + target_commitish: "latest-master" prerelease: true - title: "Latest master" + generate_release_notes: true + name: "Latest master" files: rescript-vscode-latest-master.vsix - name: Publish release version to GitHub if: startsWith(github.ref, 'refs/tags/') - uses: marvinpinto/action-automatic-releases@latest + uses: softprops/action-gh-release@v2 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false - title: ${{ steps.tag_name.outputs.tag }} + generate_release_notes: true + name: ${{ steps.tag_name.outputs.tag }} files: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix - name: Publish extension as pre-release From b952f2e102cfaf088ee8b2d805c7c61dcee70773 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 10 Jun 2024 17:36:12 +0200 Subject: [PATCH 2/4] CI: Upgrade to Node 20 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83c10ed6d..21cb62e9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: 'https://registry.npmjs.org' - run: npm ci @@ -170,7 +170,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: 'https://registry.npmjs.org' - run: npm ci From 96abfcd90a2d51966d3519be13cbae5510bff6b6 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 10 Jun 2024 17:41:28 +0200 Subject: [PATCH 3/4] Remove target_commitish, as it defaults to master anyway --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21cb62e9f..334fa90e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -288,7 +288,6 @@ jobs: uses: softprops/action-gh-release@v2 with: token: "${{ secrets.GITHUB_TOKEN }}" - target_commitish: "latest-master" prerelease: true generate_release_notes: true name: "Latest master" From 6e9912dc005da66fdf965b0104632b2f636b17f3 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 10 Jun 2024 17:43:50 +0200 Subject: [PATCH 4/4] Use correct tag_name field for latest-master --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 334fa90e4..a875f2e0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -288,6 +288,7 @@ jobs: uses: softprops/action-gh-release@v2 with: token: "${{ secrets.GITHUB_TOKEN }}" + tag_name: "latest-master" prerelease: true generate_release_notes: true name: "Latest master"