chore: basic #2
This file contains hidden or 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
| 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 }} |