-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.13 KB
/
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
# This workflow triggers the release process after code check is completed
#
name: Release
run-name: ${{ github.event.workflow_run.head_commit.message }} [${{ github.event.workflow_run.id }}]
# Controls when the action will run.
on:
workflow_run:
workflows: [Checks]
types: [completed]
branches: [main, next, beta, alpha]
concurrency:
# group: ${{ github.workflow }}_${{ github.head_ref || github.ref || github.run_id }}
# Use the name of the triggering workflow run as the concurrency group to avoid conccurency issues
group: ${{ github.workflow }}_${{ github.event.workflow_run.head_branch || github.ref_name || github.run_id }}
cancel-in-progress: true
# Declare default permissions as read only.
permissions:
contents: read
jobs:
semantic-release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: '▶️ actions'
uses: ./.github/workflows/semantic-release.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
permissions:
contents: write
issues: write
pull-requests: write
packages: write
id-token: write