Skip to content

Commit 8d50971

Browse files
Merge pull request #96 from cabify/use-shared-actions
use shared configurations
2 parents 49686d1 + c58a29a commit 8d50971

3 files changed

Lines changed: 7 additions & 31 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ on:
99

1010
jobs:
1111
publish-npm:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
with:
17-
node-version: ${{ matrix.node-version }}
18-
cache: 'yarn'
19-
- run: yarn install
20-
- uses: JS-DevTools/npm-publish@v1
21-
with:
22-
tag: ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
23-
token: ${{ secrets.NPM_TOKEN }}
12+
uses: cabify/javascript-actions/.github/workflows/npm_publish.yml@main
13+
with:
14+
tag: ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
15+
secrets:
16+
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,4 @@ on: [push]
77

88
jobs:
99
test:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- uses: actions/checkout@v2
14-
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v2
16-
with:
17-
node-version: 16.x
18-
cache: 'yarn'
19-
- run: yarn install
20-
- name: Run Lint
21-
run: yarn lint
22-
- name: Run Format
23-
run: yarn format:check
24-
- name: Run Typecheck
25-
run: yarn typecheck
26-
- name: Run Tests
27-
run: yarn test:ci
10+
uses: cabify/javascript-actions/.github/workflows/tests.yml@main

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cabify/prom-react",
33
"description": "Add Prometheus metrics to your React App",
4-
"version": "0.1.9-beta.2",
4+
"version": "0.1.9-beta.3",
55
"author": "Cabify",
66
"license": "Apache-2.0",
77
"main": "./dist/index.js",

0 commit comments

Comments
 (0)