File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release Alpha
2+
3+ on :
4+ push :
5+ branches :
6+ - release/alpha
7+
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
10+ jobs :
11+ release-alpha :
12+ name : Release Alpha
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+ issues : write
17+ pull-requests : write
18+ packages : write
19+ steps :
20+ - name : Checkout Repo
21+ uses : actions/checkout@v4
22+ with :
23+ fetch-depth : 0
24+ token : ${{ secrets.RELEASE_TOKEN }}
25+
26+ - name : Setup Node.js, pnpm and Nx cache
27+ uses : ./.github/actions/setup
28+ with :
29+ registry-url : ' https://registry.npmjs.org'
30+
31+ - name : Build Packages
32+ run : pnpm build:packages
33+
34+ - name : Setup Git User
35+ run : |
36+ git config --global user.name "LouisMazel"
37+ git config --global user.email "12446546+LouisMazel@users.noreply.github.com"
38+
39+ - name : Version Packages (Alpha)
40+ run : |
41+ pnpm lerna:version:alpha
42+
43+ - name : Commit version and changelog
44+ run : |
45+ VERSION=$(jq -r '.version' lerna.json)
46+ git add .
47+ git commit -m "chore: bump version to $VERSION"
48+
49+ - name : Publish to NPM (Alpha)
50+ run : |
51+ pnpm lerna:publish:alpha
52+ env :
53+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments