From 4375e51b96aba0cb6fe027bb23ef566e676943cc Mon Sep 17 00:00:00 2001 From: Andrew Wei Date: Sun, 7 Jul 2024 17:20:44 -0700 Subject: [PATCH] ci: Fix release script --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9680cc..34351d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: 21 + cache: npm - name: Release semantic version - run: npx semantic-release + run: | + npm i -g semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/exec + npx semantic-release - name: Release major version run: | VERSION="$(git tag --points-at ${{ github.sha }})"