-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76097a2
commit 08f5874
Showing
3 changed files
with
10 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
# .github/workflows/release-please.yml | ||
name: release-please | ||
on: | ||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
label: | ||
description: 'PR label, force update for release-please PRs. Do not use spaces!' | ||
required: false | ||
type: string | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install release-please client | ||
run: npm i release-please -g | ||
# set extra label to ensure correct pr generation (menifest merge issue) | ||
- name: Create release pr | ||
run: | | ||
printenv | sort | ||
if [ -n "${{ github.event.release.tag_name }}" ]; then | ||
LABEL="--label ${{ github.event.release.tag_name }}" | ||
elif [ -n "${{ inputs.label }}" ]; then | ||
LABEL="--label ${{ inputs.label }}" | ||
fi | ||
echo $LABEL | ||
release-please release-pr --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY $LABEL | ||
- name: Create github release | ||
run: release-please github-release --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
release-type: node | ||
package-name: testi2 |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
{ | ||
"sequential-calls": true, | ||
"packages": { | ||
".": { | ||
"release-type": "node", | ||
"package-name": "testi" | ||
} | ||
}, | ||
"plugins": ["sentence-case"] | ||
} |