GitHub Action
Notion release notes
This action allows you to specify an existing database in your Notion account that it can add a release note to within an action.
Typically used alongside https://github.com/mikepenz/release-changelog-builder-action
You need to have an integration access token - which you can get from https://www.notion.so/my-integrations after creating an integration.
This action expects a Notion database with the following properties:
Name: text Date: date Tags: tags
Note that you must share your database with the integration you created earlier to be able to access it!
It can look like this:
And each actual page contains whatever your release notes are:
Typically this is used with a changelog builder:
- name: Release Changelog Builder
uses: mikepenz/[email protected]
id: build_changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notion release notes
uses: infinitaslearning/notion-release-notes@main
with:
token: ${{ secrets.NOTION_TOKEN }}
database: 619f0845c68a4c18837ebdb9812b90c0
name: Release
tags: tag,comma,separated
body: ${{ steps.build_changelog.outputs.changelog }}
To get the database ID, simply browse to it, click on the '...' and get a 'Copy link'. The GUID at the end of the URL is the id.
Assumes you have @vercel/ncc
installed globally.
After changes ensure you npm run build
, commit and then submit a PR.