-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.15 KB
/
beta-publish.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
49
name: Beta NPM Packages Publishing
on:
pull_request:
types: [closed]
branches: ["develop", "v2"]
workflow_dispatch:
jobs:
deploy-beta:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 18.13.0
uses: actions/setup-node@v3
with:
node-version: 18.13.0
registry-url: "https://registry.npmjs.org"
cache: "yarn"
- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build packages
run: yarn build:all
- name: Configure Git User
run: |
git config --global user.email "[email protected]"
git config --global user.name "humaci"
- name: Publish packages
run: |
yarn lerna:publish:canary --yes