Skip to content

Commit ca0e414

Browse files
authored
Merge pull request #8 from johelder/dev
dev->main
2 parents 6a279c9 + f1c3995 commit ca0e414

File tree

2 files changed

+42
-32
lines changed

2 files changed

+42
-32
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: CI
22
on:
3-
push:
3+
pull_request:
44
branches:
55
- main
6+
- dev
67
merge_group:
78
types:
89
- checks_requested
@@ -46,34 +47,3 @@ jobs:
4647

4748
- name: Build package
4849
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)