-
Notifications
You must be signed in to change notification settings - Fork 37
34 lines (32 loc) · 973 Bytes
/
release-remote.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
name: Release remote plugin
on:
workflow_run:
workflows:
- Can release
branches:
- main
types:
- completed
jobs:
release:
name: Release remote plugin
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 16
- run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: git checkout release/remote
- run: git merge main
- run: yarn install --ignore-script --frozen-lockfile
- run: yarn run release-build:remote
- run: yarn run build:preview-script
- run: git add --all
- run: git commit -m "Release $(yarn run --silent print-version)" --allow-empty
- run: git push origin release/remote