File tree Expand file tree Collapse file tree 3 files changed +81
-0
lines changed Expand file tree Collapse file tree 3 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version : 2
7
+ updates :
8
+ - package-ecosystem : " npm" # See documentation for possible values
9
+ directory : " /" # Location of package manifests
10
+ schedule :
11
+ interval : " weekly"
Original file line number Diff line number Diff line change
1
+ name : Code Coverage
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ test-coverage :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+ - uses : actions/setup-node@v3
12
+ with :
13
+ node-version : 16
14
+ - run : yarn
15
+ - run : yarn test
16
+ - uses : codecov/codecov-action@v3
17
+ env :
18
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 16
16
+
17
+ - run : yarn
18
+ - run : yarn test
19
+ - run : yarn build
20
+ - uses : codecov/codecov-action@v3
21
+ env :
22
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
23
+
24
+ publish-npm :
25
+ needs : test
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v3
29
+ - uses : actions/setup-node@v3
30
+ with :
31
+ node-version : 16
32
+ registry-url : https://registry.npmjs.org/
33
+ - run : echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV
34
+ - run : yarn
35
+ - run : yarn publish --new-version $PACKAGE_VERSION
36
+ env :
37
+ PACKAGE_VERSION : ${{env.PACKAGE_VERSION}}
38
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
39
+
40
+ test-example :
41
+ needs : publish-npm
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v3
45
+ - uses : actions/setup-node@v3
46
+ with :
47
+ node-version : 16
48
+ - working-directory : ./example
49
+ run : |
50
+ yarn
51
+ yarn test
52
+ yarn build
You can’t perform that action at this time.
0 commit comments