Skip to content

Commit 8e7daa5

Browse files
author
Amulya Kashyap
committed
Added external workflows
1 parent ff11060 commit 8e7daa5

File tree

5 files changed

+5
-106
lines changed

5 files changed

+5
-106
lines changed

.github/workflows/daily.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,4 @@ on:
77

88
jobs:
99
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

.github/workflows/node.js.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,4 @@ on:
1414

1515
jobs:
1616
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

.github/workflows/on-push-publish-to-npm.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,4 @@ on:
77
- "package.json"
88
jobs:
99
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

.github/workflows/prerelease.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,4 @@ on:
1313

1414
jobs:
1515
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

.github/workflows/version-bump-publish.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,4 @@ on:
1212
default: "latest"
1313
jobs:
1414
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

0 commit comments

Comments
 (0)