-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (41 loc) · 1.23 KB
/
release.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:
push:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}/bb-component-SuperTable
- uses: actions/checkout@v3
name: Checkout Super Components Shared code repository
with:
repository: poirazis/bb_super_components_shared
path: ${{ github.workspace }}/bb_super_components_shared
ref: develop
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Make the production plugin bundle
run: |
cd bb_super_components_shared
yarn
cd ../bb-component-SuperTable
release_version=$(cat package.json | jq -r '.version')
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
yarn
yarn build
- name: Perform Github Release
uses: softprops/action-gh-release@v1
with:
name: v${{ env.RELEASE_VERSION }}
tag_name: v${{ env.RELEASE_VERSION }}
generate_release_notes: true
files: |
${{ github.workspace }}/bb-component-SuperTable/dist/*.tar.gz