Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ACNA-1599 - create prerelease.yml #28

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-errors,@adobe/aio-lib-core-logging,@adobe/aio-lib-core-networking,@adobe/aio-lib-state'

jobs:
checkout:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git config user.name github-actions
git config user.email [email protected]
- 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/[email protected]
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'