1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-08 10:41:13 +02:00
Files
gitea-release-please-action/.github/workflows/release-please.yaml
2020-10-08 18:25:02 -07:00

43 lines
1.1 KiB
YAML

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.2
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.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: release-please-action
command: github-release