Skip to content

Commit

Permalink
chore: update CI node versions, add prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Jul 15, 2022
1 parent b1f5943 commit 3190e48
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x, 16.x]
os: [ubuntu-latest, windows-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-push-publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 16
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: publish-prerelease
on:
workflow_dispatch:
inputs:
pre-release-tag:
description: 'The pre-release tag use in the version'
required: false
default: 'pre'
dist-tag:
description: 'The dist-tag use'
required: false
default: 'next'
dependencies-to-update:
description: 'csv of dependencies to update with the dist-tag'
required: false
default: '@adobe/aio-lib-core-logging,@adobe/aio-lib-core-errors'

jobs:
checkout:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- uses: actions/setup-node@v1
with:
node-version: 16
- run: |
npm install
npm test
- name: Update your package.json with an npm pre-release version
id: pre-release-version
uses: adobe/update-prerelease-npm-version@v1.0.2
with:
pre-release-tag: ${{ github.event.inputs.pre-release-tag }}
dependencies-to-update: ${{ github.event.inputs.dependencies-to-update }}
dependencies-to-update-version-tag: ${{ github.event.inputs.dist-tag }}
- run: echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
tag: ${{ github.event.inputs.dist-tag }}
access: 'public'
2 changes: 1 addition & 1 deletion .github/workflows/version-bump-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
git config user.email grp-opensourceoffice@adobe.com
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 16
- run: |
npm install
npm test
Expand Down

0 comments on commit 3190e48

Please sign in to comment.