-
Notifications
You must be signed in to change notification settings - Fork 256
35 lines (33 loc) · 1022 Bytes
/
bumpAndTag.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
name: Bump,Tag and draft release
on:
# trigger when pushed (merged) to the main branch
push:
branches:
- main
jobs:
create-github-draft-release:
name: Bump version
if: github.actor != 'Scully-Bot'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
token: ${{ secrets.BOT_PAT }}
- name: Setup Node, retrieve node_modules and dist folder from cache
uses: ./.github/build-artifacts
- name: Bump,Tag and draft release
env:
BOT_PAT: ${{ secrets.BOT_PAT }}
REPO_NAME: ${{ github.repository }}
run: |
npm run bumpAndTag -- --doActualPublish
dummy:
name: Prevent recursion
if: github.actor == 'Scully-Bot'
runs-on: ubuntu-latest
steps:
- name: no recursion needed, if you see this, it means the bot is working
run: |
echo "no recursion needed, if you see this, it means the bot is working"