-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add prerelease, run tests on 14, 16
- Loading branch information
1 parent
80786e1
commit e0904ca
Showing
5 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters