-
Notifications
You must be signed in to change notification settings - Fork 96
54 lines (44 loc) · 1.28 KB
/
release.yml
File metadata and controls
54 lines (44 loc) · 1.28 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
name: Release
on:
push:
branches:
- master
workflow_dispatch:
permissions:
id-token: write
contents: write
jobs:
release:
runs-on: ubuntu-latest
name: Release Packages
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.BOT_SSH_KEY }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Update npm to latest version
run: npm install -g npm@11.6.2
- name: Install dependencies
run: npm ci
- name: Derive appropriate SHAs for base and head for nx affected commands
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'master'
- name: Build packages
run: npx nx run-many --target=build --parallel=3
- name: 🚀 Run Nx Release
run: |
git config --global user.email "${{ secrets.RELEASE_EMAIL }}"
git config --global user.name "${{ secrets.RELEASE_USERNAME }}"
npx nx release -y
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NPM_CONFIG_PROVENANCE: true
npm_config_legacy_peer_deps: false