Skip to content

Commit

Permalink
ci: fix manual release
Browse files Browse the repository at this point in the history
  • Loading branch information
overbit committed Feb 29, 2024
1 parent 9e2d55d commit 87681f0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/releaseBeta.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Manual Publish Package to npmjs
name: Manual Publish Package
run-name: Version ${{ github.event.inputs.version }}

on:
workflow_call:
workflow_dispatch:
inputs:
version:
type: string
required: true
description: 'The version to publish. Must be a valid semver version.'
description: 'The version to publish. Must be a valid semver version. i.e. 1.0.0-beta.1'
jobs:
manual-release:
runs-on: ubuntu-latest
Expand All @@ -18,8 +20,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- run: npm ci
- run: sed -i 's/0.0.0-development/${{ inputs.version }}/' ./package.json
- run: npm publish --access public --tag beta
- name: Install
run: npm ci
- name: Set version
run: npm version ${{ inputs.version }} --no-git-tag-version
- name: Release
run: npm publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 87681f0

Please sign in to comment.