Skip to content

Commit

Permalink
fix: create prerelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron authored Jan 8, 2024
1 parent 331b652 commit 69e1064
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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'

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: 18
- 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.1.0
with:
pre-release-tag: ${{ github.event.inputs.pre-release-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'

0 comments on commit 69e1064

Please sign in to comment.