Skip to content

Commit

Permalink
Merge pull request #1020 from fhammerschmidt/switch-to-action-gh-release
Browse files Browse the repository at this point in the history
CI: Switch to action-gh-release and upgrade node
  • Loading branch information
fhammerschmidt authored Jun 11, 2024
2 parents 0a631e1 + 6e9912d commit 74728bf
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
tag_name: "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
Expand Down

0 comments on commit 74728bf

Please sign in to comment.