Skip to content

Commit ca951be

Browse files
committed
ci: update workflow triggers and remove deploy job
- add dev branch to push and pull_request triggers - remove deploy job and related steps
1 parent 45d0f63 commit ca951be

File tree

2 files changed

+45
-31
lines changed

2 files changed

+45
-31
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
push:
44
branches:
55
- main
6+
- dev
7+
pull_request:
8+
branches:
9+
- main
10+
- dev
611
merge_group:
712
types:
813
- checks_requested
@@ -46,34 +51,3 @@ jobs:
4651

4752
- name: Build package
4853
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 }}

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}

0 commit comments

Comments
 (0)