-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (77 loc) · 1.88 KB
/
release-base.yml
File metadata and controls
79 lines (77 loc) · 1.88 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Release Package - JavaScript [MAIN]
on:
push:
branches:
- main
env:
GIT_AUTHOR_NAME: "@bumper-bot"
GITHUB_TOKEN: ${{ secrets.GH_GLOBAL_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_GLOBAL_TOKEN || secrets.GH_GLOBAL_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.0.3'
- name: "Start: Unit Testing"
run: |
cd ./package
flutter pub get
yarn install
yarn test
yarn test:flutter
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.0.3'
- name: "Start: Unit Testing"
run: |
cd ./package
flutter pub get
yarn install
yarn lint
yarn lint:flutter
release-js:
needs:
- lint
- test
name: Release [JS NPM & GitHub Registry]
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 17
- name: Release NPM Registry
env:
GIT_AUTHOR_NAME: "@bumper-bot"
GITHUB_TOKEN: ${{ secrets.GH_GLOBAL_TOKEN }}
run: |
cd ./package
yarn install
echo 'Run Flutter CI Steps'
echo $GITHUB_TOKEN
yarn build
yarn release
- name: Release GitHub Registry
run: |
cd ./package
echo '//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}' > ~/.npmrc
yarn release:github_registry