name: Publish on: push: branches: - master jobs: web-deploy: name: 🎉 Deploy runs-on: ubuntu-latest steps: - name: Pegando o ultimo codigo... uses: actions/checkout@v2 - name: Preparando o Node... uses: actions/setup-node@v2 with: node-version: '16.14.0' - name: Construindo... run: | npm install - name: Verificando o que mudou... id: changelog uses: TriPSs/conventional-changelog-action@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} output-file: 'false' - name: Criando uma release... uses: actions/create-release@v1 if: ${{ steps.changelog.outputs.skipped == 'false' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.changelog.outputs.tag }} release_name: ${{ steps.changelog.outputs.tag }} body: ${{ steps.changelog.outputs.clean_changelog }} - name: Enviando conforme o deploy do package.json run: | npm run deploy --no-silent