-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (40 loc) · 1.09 KB
/
publish.yml
File metadata and controls
45 lines (40 loc) · 1.09 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
name: Publish
on:
push:
tags:
- v*.*.*
concurrency:
group: publish
cancel-in-progress: false
# configured as trusted publisher (OIDC)
# https://docs.npmjs.com/trusted-publishers
permissions:
contents: read
id-token: write
env:
NX_NON_NATIVE_HASHER: true
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
publish:
name: Publish packages
runs-on: ubuntu-latest
environment: release
steps:
- name: Clone the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git user
# https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install dependencies
run: npm ci
- name: Publish packages to npm
run: npx nx release publish