-
-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (37 loc) · 1.02 KB
/
release.yml
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
name: Release
on:
push:
branches:
- master
- next
- beta
- alpha
env:
CI: true
jobs:
release:
name: Build, Release & Publish
permissions:
contents: write
id-token: write # needed for provenance data generation
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Git
run: |
git config --global user.email semantic-release@github.com
git config --global user.name "Semantic Release CI"
- name: Install node, pnpm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Build, Release on GitHub & Publish to NPM
env:
HUSKY: '0' # By default do not run HUSKY install
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm nx release --yes -- --skip-nx-cache