-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.01 KB
/
version.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
# This workflow will increment version according to available changesets whenever a Release PR is created
name: Version
on:
push:
branches:
- main
jobs:
release:
name: Version
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
ssh-key: ${{ secrets.HFC_BOT_SSH_KEY }}
- name: git config
run: |
git config user.name hfc-bot
git config user.email [email protected]
- name: Setup Node.js 12.x
uses: actions/setup-node@master
with:
node-version: 12.x
cache: 'yarn'
- name: 📦 Install dependencies
run: yarn install --immutable
- name: Create Release Pull Request
uses: changesets/action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}