File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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://help.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 : ' daily'
12+ labels :
13+ - ' dependabot'
14+ open-pull-requests-limit : 20
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' main'
7+ - ' release/*'
8+ - ' dependabot/*'
9+
10+ push :
11+ branches :
12+ - ' main'
13+ - ' release/*'
14+
15+ concurrency :
16+ group : ${{ github.head_ref || github.run_id }}
17+ cancel-in-progress : true
18+
19+ jobs :
20+ lint :
21+ runs-on : ubuntu-latest
22+ strategy :
23+ matrix :
24+ node-version :
25+ - lts/*
26+ - latest
27+ steps :
28+ - name : Checkout Code Repository
29+ uses : actions/checkout@v4
30+ - name : Use Node.js ${{ matrix.node-version }}
31+ uses : actions/setup-node@v4
32+ with :
33+ node-version : ${{ matrix.node-version }}
34+ cache : ' npm'
35+ - name : Install dependencies
36+ run : npm ci
37+ - name : Run tests
38+ run : npm run lint
39+ build :
40+ runs-on : ubuntu-latest
41+ needs : lint
42+ steps :
43+ - uses : actions/checkout@v4
44+ # Setup .npmrc file to publish to npm
45+ - uses : actions/setup-node@v3
46+ with :
47+ node-version : ' lts/*'
48+ cache : ' npm'
49+ registry-url : ' https://registry.npmjs.org'
50+ - run : npm ci
51+ - run : npm publish
52+ env :
53+ NODE_AUTH_TOKEN : ${{ secrets.NPM_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments