Skip to content

Commit e0904ca

Browse files
committed
chore: add prerelease, run tests on 14, 16
1 parent 80786e1 commit e0904ca

5 files changed

Lines changed: 51 additions & 6 deletions

File tree

.github/workflows/daily.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
node: [14]
13+
node: [16]
1414
os: [ubuntu-latest]
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: Use Node.js ${{ matrix.node-version }}
18+
- name: Use Node.js ${{ matrix.node }}
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: ${{ matrix.node-version }}
21+
node-version: ${{ matrix.node }}
2222
- run: npm i --package-lock --package-lock-only
2323
- run: npm ci
2424
- name: run unit tests

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
node-version: [10.x, 12.x, 14.x]
17+
node-version: [14.x, 16.x]
1818
os: [ubuntu-latest, windows-latest]
1919

2020
steps:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v1
1414
with:
15-
node-version: 10
15+
node-version: 16
1616
- run: npm install
1717
- run: npm test
1818
- uses: JS-DevTools/npm-publish@v1

.github/workflows/prerelease.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: publish-prerelease
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
pre-release-tag:
6+
description: 'The pre-release tag use in the version'
7+
required: false
8+
default: 'pre'
9+
dist-tag:
10+
description: 'The dist-tag use'
11+
required: false
12+
default: 'next'
13+
dependencies-to-update:
14+
description: 'csv of dependencies to update with the dist-tag'
15+
required: false
16+
default: '@adobe/aio-lib-core-logging,@adobe/aio-lib-core-errors'
17+
18+
jobs:
19+
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 [email protected]
27+
- uses: actions/setup-node@v1
28+
with:
29+
node-version: 16
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/[email protected]
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'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
git config user.email [email protected]
2222
- uses: actions/setup-node@v1
2323
with:
24-
node-version: 10
24+
node-version: 16
2525
- run: |
2626
npm install
2727
npm test

0 commit comments

Comments
 (0)