-
Notifications
You must be signed in to change notification settings - Fork 12
59 lines (58 loc) · 1.66 KB
/
auto-tag-releases-v5.5.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: auto-tag-releases-v5.5
run-name: Auto-Tag Release (v5.5)
on:
schedule:
- cron: 0 10 * * 1
workflow_dispatch: {}
jobs:
pre-flight:
name: Pre-Flight Checks
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
sha: ${{ steps.git.outputs.sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: maintenance/v5.5
repository: ${{ github.repository }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: "18"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Identify git SHA
id: git
run: echo sha=$(git rev-parse HEAD) >> $GITHUB_OUTPUT
auto-tag:
name: Auto-Tag Release
needs: pre-flight
runs-on: ubuntu-latest
permissions: {}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ needs.pre-flight.outputs.sha }}
repository: ${{ github.repository }}
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: "18"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Set git identity
run: |-
git config user.name "github-actions"
git config user.email "github-actions@github.com"
- name: Tag Release
run: yarn tag-release --idempotent --no-sign --push --release-line=5.5