generated from archoleat/repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.23 KB
/
release.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Release
on:
workflow_run:
workflows:
- Spec
types:
- completed
push:
branches:
- main
permissions:
id-token: write
jobs:
release:
name: Release
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Generate Token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.ARCHOLEATER_APP_ID }}
private_key: ${{ secrets.ARCHOLEATER_APP_PRIVATE_KEY }}
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Set Up PNPM
uses: pnpm/action-setup@v4
- name: Set Up NodeJS
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: lts/*
- name: Install Dependencies
run: pnpm i
- name: Build
run: pnpm rollup -c rollup.config.ts --configPlugin typescript
- name: Create Release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: pnpm semantic-release