Skip to content

Develop

Develop #4

name: Write Pre Release notes
on:
pull_request:
types: [opened, reopened, synchronize, edited, closed, labeled]
permissions:
contents: write
pull-requests: write
jobs:
Release:
if: contains(github.event.pull_request.labels.*.name, 'pre-release')
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set RELEASE env var from package.json
run: echo RELEASE=$(node --print "require('./package.json').rcVersion") >> $GITHUB_ENV
- name: Create release notes
uses: release-drafter/release-drafter@v5
with:
config-name: pre-release-drafter.yml
commitish: main
prerelease: true
tag: ${{ env.RELEASE }}
name: ${{ env.RELEASE }}
version: ${{ env.RELEASE }}
latest: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}