-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.75 KB
/
publish.yaml
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
name: Publish libraries
on:
push:
tags:
- v*.*.*
jobs:
test:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
timeout-minutes: 10
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
NPM_CONFIG_PROVENANCE: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# TODO: Figure this out - @russell.green
# - name: Exit if not on main branch
# if: endsWith(github.ref, 'main') == false
# run: exit -1
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Print environment info
run: npm run nx -- report
# Switch back to using NX once this bug is fixed:
# https://github.com/nrwl/nx/issues/21855 - @russell.green
#
# - name: Publish packages
# run: npm run nx -- release publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
# NPM_CONFIG_PROVENANCE: true
# TODO: Remove these steps once the above step is able to
# be added back in - @russell.green
- name: Build libraries
run: npm run build:ci
- name: Publish "core" package
run: cd dist/libs/core && npm publish --access public
- name: Publish "bootstrap" package
run: cd dist/libs/bootstrap && npm publish --access public
- name: Publish "material" package
run: cd dist/libs/material && npm publish --access public
- name: Publish "primeng" package
run: cd dist/libs/primeng && npm publish --access public