Skip to content

Commit 2c43fcd

Browse files
authored
Update dependencies (#505)
* Update deps * Update workflows * Fix typo * Fix typo * Add release workflow * Update access token * Add .npmrc * Bump version * Add repo * Fix typo * Fix typo * Remove cloud monitor methods
1 parent 9070799 commit 2c43fcd

File tree

9 files changed

+1687
-2328
lines changed

9 files changed

+1687
-2328
lines changed

.github/workflows/release.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Lib
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
env:
12+
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
13+
14+
steps:
15+
- name: Disable EOL conversions
16+
run: git config --global core.autocrlf false
17+
18+
- name: Checkout
19+
uses: actions/checkout@master
20+
21+
- name: Integration tests
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: '12'
25+
26+
- run: npm install
27+
- run: npm run lint
28+
- run: npm run test
29+
env:
30+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
31+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
32+
33+
- run: npm run build
34+
- run: npm publish

.github/workflows/test.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
name: test
1+
name: "[PR] Run Tests"
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, ready_for_review, reopened]
56
push:
67
branches:
78
- master
89

910
jobs:
1011
test:
1112
runs-on: ubuntu-latest
13+
env:
14+
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
1215
steps:
1316
- name: Disable EOL conversions
1417
run: git config --global core.autocrlf false

.github/workflows/verify-version.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "[PR] Verify App Version"
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, ready_for_review, reopened]
6+
7+
jobs:
8+
get-current-version:
9+
name: Get Current Version
10+
runs-on: ubuntu-latest
11+
if: ${{ github.base_ref == 'master' }}
12+
outputs:
13+
version: ${{ steps.get_version.outputs.version }}
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- id: get_version
18+
name: Get version
19+
run: |
20+
version=$(node -p 'require("./package.json").version')
21+
echo "::set-output name=version::${version}"
22+
23+
get-master-version:
24+
name: Get Master Version
25+
runs-on: ubuntu-latest
26+
if: ${{ github.base_ref == 'master' }}
27+
outputs:
28+
version: ${{ steps.get_version.outputs.version }}
29+
steps:
30+
- uses: actions/checkout@v1
31+
with:
32+
ref: master
33+
34+
- id: get_version
35+
name: Get version
36+
run: |
37+
version=$(node -p 'require("./package.json").version')
38+
echo "::set-output name=version::${version}"
39+
40+
verify:
41+
name: Verify versions
42+
if: ${{ github.base_ref == 'master' }}
43+
needs: [get-current-version, get-master-version]
44+
runs-on: ubuntu-latest
45+
steps:
46+
- id: verify_versions
47+
name: Verify versions
48+
shell: bash
49+
run: |
50+
if [[ ${{ needs.get-current-version.outputs.version }} > ${{ needs.get-master-version.outputs.version }} ]] ; then
51+
echo 'Version is ok!'
52+
else
53+
echo 'Must bump app version' && exit 1
54+
fi
55+
56+

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${REPO_ACCESS_TOKEN}

0 commit comments

Comments
 (0)