Skip to content

Commit

Permalink
feat: release-please action
Browse files Browse the repository at this point in the history
  • Loading branch information
terovirtanen committed Jan 11, 2024
1 parent 76097a2 commit 08f5874
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 34 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/release-please.yml
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
3 changes: 0 additions & 3 deletions .release-please-manifest.json

This file was deleted.

6 changes: 0 additions & 6 deletions release-please-config.json
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"]
}

0 comments on commit 08f5874

Please sign in to comment.