Skip to content

Commit

Permalink
added version to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-JAlvarez committed Feb 14, 2024
1 parent 273881e commit 9bf0321
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Publish Pre Release

on:
workflow_dispatch:
inputs:
version:
description: "The version to publish on the form of x.x.x-pre.x"
required: true

jobs:
build:
Expand All @@ -23,7 +27,12 @@ jobs:
- name: Build
run: npm run build

- name: Set Git Config
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Publish to npm
run: npm publish --tag next
run: npm version ${{ inputs.version }} && npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9bf0321

Please sign in to comment.