-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (74 loc) · 2.86 KB
/
Copy pathrelease.yml
File metadata and controls
90 lines (74 loc) · 2.86 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Release
on:
workflow_dispatch:
permissions:
# allow the release step to comment on
# issues, pull requests, and write to the repo
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: [ubuntu-latest]
environment:
name: release
env:
CI: false
NODE_OPTIONS: --max-old-space-size=4096
BACKSTAGE_CLI_BUILD_PARALLEL: 1
HUSKY_SKIP_HOOKS: 1
HUSKY: 0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Use node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Setup environment variables
run: echo "CURRENT_BRANCH=$(echo -n ${{github.head_ref || github.ref_name}})" >> $GITHUB_ENV
- name: Building Packages
run: pnpm build
- name: Check code Style
run: pnpm lint-format:fix
- name: verify type dependencies
run: pnpm nodeboot:check:type-deps
- name: Execute Linter
run: pnpm lint
- name: Typescript Checks # Check this later on to run tsc:full instead to check transitive dependencies as well
run: pnpm tsc
- name: Start monorepo release
id: start-monorepo-release
uses: manusant/monorepo-release-start@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Write released packages to a manifest file
run:
# Use explicit single quote otherwise echo removes all double quotes!
echo '${{ steps.start-monorepo-release.outputs.releasedPackages }}' > release.manifest.json
- name: Format Changesets
run: pnpm changeset:format
- name: Re-Install packages
run: |
pnpm install
- name: Finish monorepo release
id: finish-monorepo-release
if: steps.start-monorepo-release.outputs.released
uses: manusant/monorepo-release-finish@v1
with:
branch: ${{ env.CURRENT_BRANCH }}
releaseBranch: "main"
draft: false
push: true
version: ${{ steps.start-monorepo-release.outputs.version }}
previousPackages: ${{ steps.start-monorepo-release.outputs.oldPackages }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}