-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 988 Bytes
/
publish.yaml
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
name: Publish
on:
push:
branches:
- main
- alpha
- beta
jobs:
run-tests:
name: Tests
# Since we aren't specifying the workflow {owner}/{repo} and @{ref}, it will use the same commit as the caller workflow (same repo and branch)
uses: ./.github/workflows/test.yaml
publish:
name: Build and Publish
needs:
- run-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.KONGPONENTS_BOT_PAT }}
- name: Setup PNPM with Dependencies
uses: ./.github/actions/setup-pnpm-with-dependencies/
- name: Build
run: pnpm build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
# Since branch protections are on (pushing commits) you need to use a bot PAT
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}