forked from XeroAPI/Xero-OpenAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 982 Bytes
/
create-github-release.yml
File metadata and controls
36 lines (30 loc) · 982 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
name: Create Github Release for OpenAPI Spec
on:
workflow_dispatch:
jobs:
create-github-release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Get github app access token
id: get_access_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.XERO_PUBLIC_APP_ID }}
private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }}
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.get_access_token.outputs.token }}
- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Perform release
run: npx --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release
env:
GH_TOKEN: ${{ steps.get_access_token.outputs.token }}