-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (39 loc) · 1002 Bytes
/
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
on:
push:
branches:
- main
- development
defaults:
run:
shell: bash
jobs:
release:
name: Tag Release and deploy to NPM
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Build
run: |
pnpm build
- name: Create version and publish to NPM
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
pnpm semantic-release
- name: Merge main into development
if: ${{ github.ref_name == 'main' }}
uses: ./.github/actions/back-merge
with:
gh_token: ${{ secrets.GH_TOKEN }}
git_user_email: ${{ secrets.GIT_USER_EMAIL }}
git_user_name: ${{ secrets.GIT_USER_NAME }}