-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathaction.yml
More file actions
27 lines (27 loc) · 952 Bytes
/
action.yml
File metadata and controls
27 lines (27 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Changeset Preview
description: Generates comment on a PR showing expected version impact
inputs:
workspace:
description: Path to the repo checkout to read changesets from. Defaults to GITHUB_WORKSPACE.
required: false
runs:
using: composite
steps:
- name: Install dependencies
shell: bash
run: npm install
working-directory: ${{ github.action_path }}
- name: Preview version bumps
shell: bash
run: node ${{ github.action_path }}/preview-changeset-versions.mjs --output /tmp/changeset-preview.md
env:
CHANGESET_WORKSPACE: ${{ inputs.workspace }}
- name: Post PR comment
shell: bash
run: |
node ${{ github.action_path }}/upsert-pr-comment.mjs \
--pr "${{ github.event.number }}" \
--body-file /tmp/changeset-preview.md \
--marker "<!-- changeset-version-preview -->"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}