-
Notifications
You must be signed in to change notification settings - Fork 374
43 lines (38 loc) · 1.12 KB
/
release_pr.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
name: release
on:
pull_request:
types: [ labeled ]
branches:
- master
jobs:
prepare-release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get current version
shell: bash
run: |
CURRENT_VERSION=$(jq -r '.version' package.json)
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
repository: pusher/public_actions
path: .github/actions
- uses: ./.github/actions/prepare-version-bump
id: bump
with:
current_version: ${{ env.CURRENT_VERSION }}
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- name: Push
shell: bash
run: |
echo "$(jq '.version = "${{ steps.bump.outputs.new_version }}"' package.json)" > package.json
make build_all
git status
git add package.json package-lock.json CHANGELOG.md dist/ types/
git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}"
git push