forked from spaceship-prompt/spaceship-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.07 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
name: release
on:
schedule:
- cron: '0 12 * * 3' # At 12:00, every Wednesday
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: Release
if: github.repository_owner == 'spaceship-prompt'
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: true
- name: 🚀 Release
uses: cycjimmy/semantic-release-action@v4
id: semantic
with:
extra_plugins: |
semantic-release-replace-plugin
@semantic-release/changelog
@semantic-release/git
semantic-release-license
env:
# Using PAT here, because published release should trigger a workflow
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}