-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 911 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
name: 'release'
on:
workflow_run:
workflows:
- ci
types:
- completed
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Full checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Get installation token
uses: './'
id: app-token
with:
appId: ${{ secrets.APP_ID }}
appPrivateKeyBase64: ${{ secrets.APP_PRIVATE_KEY_BASE64 }}
appInstallationType: repo
appInstallationValue: ${{ github.repository }}
- name: Release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: yarn install && yarn release --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git