Skip to content

Commit

Permalink
fix(release): Add semantic release (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancgalvis authored Apr 30, 2024
1 parent 23e3a0a commit 40b8497
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
- name: Semantic Release
if: github.ref == 'refs/heads/master' # especificar rama principal
if: github.ref == 'refs/heads/main'
run: npx [email protected]
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_P_A_TOKEN }} # debe crear un Personal Access Token
Expand Down

0 comments on commit 40b8497

Please sign in to comment.