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 b8c1987 commit 419f861
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
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:
tags:
- "v*"
Expand All @@ -25,7 +19,7 @@ jobs:
run: make prettier
- name: Test
run: make test
- run: gh release create ${{ github.event.inputs.version || github.ref_name }} --generate-notes
- run: gh release create ${{ github.ref_name }} --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
Expand All @@ -43,7 +37,7 @@ jobs:
run: make build
- name: Prettier
run: make prettier
- run: npm version --no-commit-hooks --no-git-tag-version ${{ github.event.inputs.version || github.ref_name }}
- run: npm version --no-commit-hooks --no-git-tag-version ${{ github.ref_name }}
- run: make publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 419f861

Please sign in to comment.