Skip to content

Commit

Permalink
feat: github actions configurado
Browse files Browse the repository at this point in the history
  • Loading branch information
mfernandezfreire committed Oct 6, 2022
1 parent 2a6cc6d commit 0c0769b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Semantic Release

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
branches: ["main"]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -24,13 +21,19 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14-17

- name: Install Dependencies
run: npm install

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
- name: Build App
run: npm run build

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/coverage

# production
/dist
/build
/storybook-static

Expand Down

0 comments on commit 0c0769b

Please sign in to comment.