-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): Add semantic release (#20)
- Loading branch information
1 parent
23e3a0a
commit 40b8497
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|