File tree Expand file tree Collapse file tree 2 files changed +42
-32
lines changed Expand file tree Collapse file tree 2 files changed +42
-32
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
- push :
3
+ pull_request :
4
4
branches :
5
5
- main
6
+ - dev
6
7
merge_group :
7
8
types :
8
9
- checks_requested
46
47
47
48
- name : Build package
48
49
run : yarn prepare
49
-
50
- deploy :
51
- runs-on : ubuntu-latest
52
- steps :
53
- - name : Checkout
54
- uses : actions/checkout@v4
55
- with :
56
- fetch-depth : 0
57
- ref : ${{ github.head_ref || github.ref_name }}
58
-
59
- - name : Setup
60
- uses : ./.github/actions/setup
61
-
62
- - name : Initialize Git user
63
- run : |
64
- git config --global user.name "Release Workflow"
65
- git config --global user.email "${{ secrets.GIT_EMAIL }}"
66
-
67
- - name : Authenticate GitHub Actions
68
- run : git remote set-url origin https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
69
-
70
- - name : Initialize the NPM config
71
- run : npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
72
- env :
73
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
74
-
75
- - name : Deploy package to NPM
76
- run : yarn release --ci
77
- env :
78
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
79
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : DEPLOY
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ merge_group :
7
+ types :
8
+ - checks_requested
9
+
10
+ jobs :
11
+ deploy :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+ ref : ${{ github.head_ref || github.ref_name }}
19
+
20
+ - name : Setup
21
+ uses : ./.github/actions/setup
22
+
23
+ - name : Initialize Git user
24
+ run : |
25
+ git config --global user.name "Release Workflow"
26
+ git config --global user.email "${{ secrets.GIT_EMAIL }}"
27
+
28
+ - name : Authenticate GitHub Actions
29
+ run : git remote set-url origin https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
30
+
31
+ - name : Initialize the NPM config
32
+ run : npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
33
+ env :
34
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35
+
36
+ - name : Deploy package to NPM
37
+ run : yarn release --ci
38
+ env :
39
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
40
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments