release-please-action
release-please-action copied to clipboard
confusion in command default value and its ussage
TL;DR
First of in the Configuration table text says defaults to running both while there is four option with its value so which two are is its referring to?
Secondly, i want try the manifest method to define my initial version as a work around of my issue #540
so first i created repo on git and clone then run this bootstrap command with initial version
release-please bootstrap --repo-url <link> --token <token> --release-type simple --initial-version 0.0.1
and its created pr with release-please-config.json and .release-please-manifest.json.
then i created release-please action workflow then when i push code action runs but says releae-please failed not found
Run google-github-actions/[email protected].[2](https://github.com/burhankhanzada/test1/runs/7617107817?check_suite_focus=true#step:2:2)
with:
release-type: simple
command: manifest
token: ***
fork: false
clean: true
bump-minor-pre-major: false
bump-patch-for-minor-pre-major: false
monorepo-tags: false
draft: false
draft-pull-request: false
✔ Building pull requests
✔ Building strategies by path
Error: release-please failed: Not Found
Expected behavior
No response
Observed behavior
No response
Action YAML
name: release-please
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/[email protected]
with:
release-type: simple
command: manifest
Log output
No response
Additional information
No response
I still dont know what both refering to but i assume its saying that by default it will run two commands as first release-pr
then github-release
so first command will create release-pull-request and second will create release with pull-request merge
for my second issue #540 i solved it with doing these steps
Install release-please
npm i release-please -g
Created repo on github clone it and run
release-please bootstrap --repo-url <url> --token <token> --release-type dart
Create release-please-action
github/workflow/release-please.yml
name: release-please
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
command: manifest
Create and config flutter project
flutter create .
change version in pubspec.yaml
version: 1.0.0+1 > version: 0.0.0+0
git add .
git commit -m "chore: Create app with flutter"
git commit --allow-empty -m "chore: release 0.0.1" -m "Release-As: 0.0.1"
git push
and now it creates a pull request with an updated version in pubscpec and changelog