-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added action to output changelog
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build Chngelog | ||
|
||
on: | ||
pull_request | ||
|
||
jobs: | ||
build-changelog: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
env: | ||
# The setup-node action configures this env var as the source for the npm auth token | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
steps: | ||
# Check out the repo with credentials that can bypass branch protection, and fetch git history instead of just latest commit | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.AUTOMATION_USER_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Configure git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "DevCycle Automation" | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'yarn' | ||
|
||
- name: Validate npm config and auth | ||
run: | | ||
npm config list | ||
npm whoami | ||
- run: yarn --immutable | ||
|
||
# Only one of the following two steps will run, depending on whether the `update_all` input is set | ||
- name: Build Changelog | ||
id: changelog | ||
uses: mikepenz/[email protected] | ||
with: | ||
ignorePreReleases: true | ||
path: sdk/react | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Output Changelog | ||
run: echo "${{ steps.github_release.outputs.changelog }}" | ||
|
Empty file.
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