forked from react-native-community/cli
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.22 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
44
45
46
47
48
name: Release
# Temporarily disable until issues resolved
on:
# release:
# types: [published]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
ref: "master"
persist-credentials: false
- name: "Setup Node v16"
uses: actions/setup-node@v3
with:
node-version: '16'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: "Setup git user"
run: |
git config user.name "${{ github.actor }}"
git config user.email "[email protected]"
- name: "Prelease"
if: "github.event.release.prerelease"
env:
GH_TOKEN: ${{ github.token }}
run: |
npx lerna version --conventional-commits --conventional-prerelease --preid alpha --yes
npx lerna publish from-git --no-verify-access --no-changelog --yes
- name: "Release"
if: "!github.event.release.prerelease"
env:
GH_TOKEN: ${{ github.token }}
run: |
npx lerna version --conventional-commits --yes
npx lerna publish from-git --no-verify-access --no-changelog --yes