Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed May 20, 2024
1 parent b6e4bca commit bceb1b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Publish Package to npmjs
on:
workflow_dispatch:
inputs:
version:
description: 'Overwrite the version to publish to npmjs (e.g. 1.0.0)'
type: string
required: false
push:
paths:
- '.github/workflows/release.yml'
tags:
- "v*"
jobs:
Expand All @@ -29,7 +32,7 @@ jobs:
run: make build
- name: Prettier
run: make prettier
- run: npm version --no-commit-hooks --no-git-tag-version ${{ github.ref_name || 'patch' }}
- run: npm version --no-commit-hooks --no-git-tag-version ${{ github.event.inputs.version || github.ref_name }}
- run: make publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bceb1b6

Please sign in to comment.