Skip to content

Commit

Permalink
ci: fix node version
Browse files Browse the repository at this point in the history
  • Loading branch information
priyashpatil committed Oct 17, 2024
1 parent bb0cbea commit bd943c9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,28 @@ jobs:
with:
go-version: "1.23"

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: go mod download

- name: Run tests
run: go test ./...

- name: Install semantic-release
run: |
npm install -g semantic-release @semantic-release/github @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install -g semantic-release @semantic-release/github @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator
semantic-release
run: npx semantic-release

- name: Build for multiple platforms
if: steps.semantic.outputs.new_release_published == 'true'
env:
VERSION: ${{ steps.semantic.outputs.new_release_version }}
run: |
Expand All @@ -53,4 +61,4 @@ jobs:
build/phpup-darwin-arm64
build/phpup-windows-amd64.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bd943c9

Please sign in to comment.