Skip to content

chore: basic

chore: basic #2

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps
run: npm install --prefer-offline --no-audit --no-fund
- name: Build
run: |
# Pega o nome do repositório para usar como nome do script
REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)
chmod +x scripts/build.sh && ./scripts/build.sh $REPO_NAME
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}