Instead of creating the release locally (during release-it's pipeline), we should create a .github/workflows/release.yml that effectively does:
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
bodyPath: ./somepath.md
draft: false
prerelease: false
This helps reduce the extra setup requirements (having a $GITHUB_AUTH).
Instead of creating the release locally (during release-it's pipeline), we should create a
.github/workflows/release.ymlthat effectively does:This helps reduce the extra setup requirements (having a
$GITHUB_AUTH).