-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) · 877 Bytes
/
CI-build.yml
File metadata and controls
36 lines (31 loc) · 877 Bytes
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
# build and create a release after successful CI
name: CI build
on:
workflow_run:
workflows:
- "CI"
types:
- "completed"
branches: [master]
jobs:
on-success:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
# build dist folder
- run: npm ci
- run: npm run build
- name: Set up Git commit author
run: git config --local user.email "github-actions[bot]@users.noreply.github.com" && git config --local user.name "github-actions[bot]"
- name: Create Github Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run release -- --ci