forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.19 KB
/
release-comments.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 📝 Comment on Release
on:
workflow_call:
inputs:
ref:
required: true
type: string
package_version_to_follow:
required: true
type: string
release_branch:
required: true
type: string
jobs:
comment:
name: Comment on Release
if: github.repository == 'remix-run/remix'
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: scripts/release/package-lock.json
- name: 📥 Install deps
run: npm ci
working-directory: ./scripts/release
- name: 📝 Comment on issues
working-directory: ./scripts/release
run: node -r esbuild-register ./comment.ts
env:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ github.token }}
VERSION: ${{ inputs.ref }}
DEFAULT_BRANCH: "main"
RELEASE_BRANCH: ${{ inputs.release_branch }}
PACKAGE_VERSION_TO_FOLLOW: ${{ inputs.package_version_to_follow }}