Skip to content

Commit 8af6b59

Browse files
amulyakashyap09Amulya Kashyap
andauthored
fix: updated github workflows (#211)
Co-authored-by: Amulya Kashyap <amulyak@adobe.com>
1 parent 3ba4dc5 commit 8af6b59

5 files changed

Lines changed: 5 additions & 109 deletions

File tree

.github/workflows/daily.yml

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

88
jobs:
99
build:
10-
if: github.repository_owner == 'adobe'
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
node-version: [18.x]
15-
os: [ubuntu-latest]
16-
17-
steps:
18-
- uses: actions/checkout@v2
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
- run: npm i --package-lock --package-lock-only
24-
- run: npm ci
25-
- name: run unit tests
26-
run: npm run test
27-
- name: Slack Notification
28-
if: ${{ failure() }}
29-
uses: rtCamp/action-slack-notify@v2
30-
env:
31-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
32-
SLACK_TITLE: 'Node version'
33-
SLACK_MESSAGE: ${{ matrix.node-version }}
34-
SLACK_COLOR: ${{ job.status == 'success' && 'good' || job.status == 'cancelled' && '#808080' || 'danger' }}
35-
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
@@ -11,26 +11,4 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
node-version: [18.x, 20.x]
18-
os: [ubuntu-latest, windows-latest]
19-
20-
steps:
21-
- uses: actions/checkout@v2
22-
with:
23-
fetch-depth: 0
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
- run: npm i --package-lock --package-lock-only
29-
- run: npm ci
30-
- run: npm run build --if-present
31-
- run: npm test
32-
- name: upload coverage
33-
if: success()
34-
uses: codecov/codecov-action@v3.1.1
35-
with:
36-
name: ${{ runner.os }} node.js ${{ matrix.node-version }}
14+
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 & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,4 @@ on:
1717

1818
jobs:
1919
checkout:
20-
name: checkout
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v2
24-
- run: |
25-
git config user.name github-actions
26-
git config user.email github-actions@github.com
27-
- uses: actions/setup-node@v1
28-
with:
29-
node-version: 18
30-
- run: |
31-
npm install
32-
npm test
33-
- name: Update your package.json with an npm pre-release version
34-
id: pre-release-version
35-
uses: adobe/update-prerelease-npm-version@v1.0.0
36-
with:
37-
pre-release-tag: ${{ github.event.inputs.pre-release-tag }}
38-
dependencies-to-update: ${{ github.event.inputs.dependencies-to-update }}
39-
dependencies-to-update-version-tag: ${{ github.event.inputs.dist-tag }}
40-
- run: echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
41-
- uses: JS-DevTools/npm-publish@v1
42-
with:
43-
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
44-
tag: ${{ github.event.inputs.dist-tag }}
45-
access: 'public'
20+
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)