on: push: branches: - main name: release-please jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: install run: npm install - name: build run: npm run build - name: commit run: |- git config --global user.name "actions-bot" git add dist/ git diff-index --quiet HEAD || git commit -m "chore: build dist" git pull --rebase git push origin main release-please-pr: runs-on: ubuntu-latest needs: [build] steps: - uses: GoogleCloudPlatform/release-please-action@v2.5.4 with: token: ${{ secrets.RELEASE_PR_TOKEN }} release-type: node fork: true package-name: release-please-action command: release-pr release-please-release: runs-on: ubuntu-latest needs: [build] steps: - uses: GoogleCloudPlatform/release-please-action@v2.5.4 with: token: ${{ secrets.GITHUB_TOKEN }} release-type: node package-name: release-please-action command: github-release