File tree Expand file tree Collapse file tree 5 files changed +5
-106
lines changed Expand file tree Collapse file tree 5 files changed +5
-106
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : ${{ matrix.os }}
11
- strategy :
12
- matrix :
13
- node-version : [18]
14
- os : [ubuntu-latest]
15
-
16
- steps :
17
- - uses : actions/checkout@v2
18
- - name : Use Node.js ${{ matrix.node-version }}
19
- uses : actions/setup-node@v1
20
- with :
21
- node-version : ${{ matrix.node-version }}
22
- - run : npm i --package-lock --package-lock-only
23
- - run : npm ci
24
- - name : run unit tests
25
- run : npm run test
26
- - name : Slack Notification
27
- if : ${{ failure() }}
28
- uses : rtCamp/action-slack-notify@v2
29
- env :
30
- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
31
- SLACK_TITLE : ' Node version'
32
- SLACK_MESSAGE : ${{ matrix.node-version }}
33
- SLACK_COLOR : ${{ job.status == 'success' && 'good' || job.status == 'cancelled' && '#808080' || 'danger' }}
34
-
10
+ uses : adobe/aio-reusable-workflows/.github/workflows/daily.yml@main
Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
build :
17
- runs-on : ${{ matrix.os }}
18
- strategy :
19
- matrix :
20
- node-version : [18.x, 20.x]
21
- os : [ubuntu-latest, windows-latest]
22
-
23
- steps :
24
- - uses : actions/checkout@v2
25
- with :
26
- fetch-depth : 0
27
- - name : Use Node.js ${{ matrix.node-version }}
28
- uses : actions/setup-node@v1
29
- with :
30
- node-version : ${{ matrix.node-version }}
31
- - run : npm i --package-lock --package-lock-only
32
- - run : npm ci
33
- - run : npm run build --if-present
34
- - run : npm test
35
- - name : upload coverage
36
- if : success()
37
- uses : codecov/codecov-action@v3.1.1
38
- with :
39
- name : ${{ runner.os }} node.js ${{ matrix.node-version }}
17
+ uses : adobe/aio-reusable-workflows/.github/workflows/node.js.yml@main
Original file line number Diff line number Diff line change 7
7
- " package.json"
8
8
jobs :
9
9
publish :
10
- runs-on : ubuntu-latest
11
- steps :
12
- - uses : actions/checkout@v2
13
- - uses : actions/setup-node@v1
14
- with :
15
- node-version : 18
16
- - run : npm install
17
- - run : npm test
18
- - uses : JS-DevTools/npm-publish@v1
19
- with :
20
- token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
10
+ uses : adobe/aio-reusable-workflows/.github/workflows/on-push-publish-to-npm.yml@main
Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
checkout :
16
- name : checkout
17
- runs-on : ubuntu-latest
18
- steps :
19
- - uses : actions/checkout@v2
20
- - run : |
21
- git config user.name github-actions
22
- git config user.email github-actions@github.com
23
- - uses : actions/setup-node@v1
24
- with :
25
- node-version : 18
26
- - run : |
27
- npm install
28
- npm test
29
- - name : Update your package.json with an npm pre-release version
30
- id : pre-release-version
31
- uses : adobe/update-prerelease-npm-version@v1.1.0
32
- with :
33
- pre-release-tag : ${{ github.event.inputs.pre-release-tag }}
34
- - run : echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
35
- - uses : JS-DevTools/npm-publish@v1
36
- with :
37
- token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
38
- tag : ${{ github.event.inputs.dist-tag }}
39
- access : ' public'
16
+ uses : adobe/aio-reusable-workflows/.github/workflows/prerelease.yml@main
Original file line number Diff line number Diff line change 12
12
default : " latest"
13
13
jobs :
14
14
checkout :
15
- name : checkout
16
- runs-on : ubuntu-latest
17
- steps :
18
- - uses : actions/checkout@v2
19
- - run : |
20
- git config user.name github-actions
21
- git config user.email github-actions@github.com
22
- - uses : actions/setup-node@v1
23
- with :
24
- node-version : 18
25
- - run : |
26
- npm install
27
- npm test
28
- - name : bump and pub
29
- if : ${{ github.event.inputs.level != '' }}
30
- run : |
31
- npm version ${{ github.event.inputs.level }}
32
- git push
33
- - uses : JS-DevTools/npm-publish@v1
34
- with :
35
- token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
36
- tag : ${{ github.event.inputs.tag }}
37
- access : " public"
15
+ uses : adobe/aio-reusable-workflows/.github/workflows/version-bump-publish.yml@main
You can’t perform that action at this time.
0 commit comments