-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (32 loc) · 979 Bytes
/
release.yml
File metadata and controls
35 lines (32 loc) · 979 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
# - https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions
# - https://tianhaozhou.medium.com/ruby-semantic-release-github-actions-efa5db43332a
# - https://dev.classmethod.jp/articles/github-actions-semantic-release-sample
name: Release
on:
workflow_run:
workflows:
- Ruby
types:
- completed
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: npx semantic-release