-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (44 loc) · 1.45 KB
/
release.yaml
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
name: Release (Sidekick Library)
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
if: "${{ !contains(github.event.head_commit.message, '[skip ci]') }}"
steps:
- name: Checkout source repo
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- run: npm run build
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
DISCORD_WEBHOOK: ${{ secrets.HELIX_RELEASE_DISCORD_WEBHOOK }}
- name: Checkout target repo
uses: actions/checkout@v3
with:
repository: adobe/helix-website
ref: main
path: _target
- name: Copy files from source to target repo
run: |
cp -r dist/* _target/tools/sidekick/library/
- name: Create branch commit and pull request in target repo
uses: peter-evans/create-pull-request@v4
with:
commit-message: "chore(sidekick library): new release candidate [skip ci]"
token: ${{ secrets.PAT }}
path: _target
base: main
branch: sidekick-library-rc
branch-suffix: short-commit-hash
delete-branch: true
title: Sidekick Library RC
body: This PR has been auto-generated from https://github.com/adobe/franklin-sidekick-library.