From 40b8497f23d88109593084452d6dc56f149edce7 Mon Sep 17 00:00:00 2001 From: JuanC Galvis <8420868+juancgalvis@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:51:03 -0500 Subject: [PATCH] fix(release): Add semantic release (#20) --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48dbad4..a4b45f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,15 +24,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up NodeJS - if: github.ref == 'refs/heads/master' # especificar rama principal + if: github.ref == 'refs/heads/main' uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Set up Semantic Release - if: github.ref == 'refs/heads/master' # especificar rama principal + if: github.ref == 'refs/heads/main' run: npm -g install @semantic-release/git semantic-release@23.0.0 - name: Semantic Release - if: github.ref == 'refs/heads/master' # especificar rama principal + if: github.ref == 'refs/heads/main' run: npx semantic-release@23.0.0 env: GITHUB_TOKEN: ${{ secrets.RELEASE_P_A_TOKEN }} # debe crear un Personal Access Token