-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (50 loc) · 1.43 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Release"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN }}
ref: "master"
- name: Keep dist up-to-date
run: |
npm ci
npm run build
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add dist/index.js
git commit -m "chore: publish dist" || echo "nothing to commit"
git push origin master
- uses: actions/checkout@v4
with:
ref: master
- name: Test Action
uses: ./
with:
DRY_RUN: true
FILE_PATTERNS: |
^README.md$
^.github/workflows/sync-.*
TARGET_REPOS: |
adrianjost/files-sync-target
GITHUB_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: master
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 18
extra_plugins: |
"@semantic-release/commit-analyzer@v9.0.2"
"@semantic-release/release-notes-generator@v10.0.3"
"@semantic-release/git@v10.0.1"
"@semantic-release/github@v8.1.0"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}