Skip to content

Commit 629d4a7

Browse files
committed
fix: publish to npm directly from branch in release dispatch
* prevents the need to merge code into main first
1 parent 01482b7 commit 629d4a7

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/release-dispatch.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Release-dispatch
2+
description: Publishes a new npm version on dispatch. Use this if you want to release a (beta) version from a feature branch without merging code into main.
23

34
on:
45
workflow_call:
@@ -58,14 +59,6 @@ jobs:
5859
- name: Set up Node.js
5960
uses: labd/gh-actions-typescript/pnpm-install@main
6061

61-
- name: Create and publish versions
62-
uses: changesets/action@v1
63-
with:
64-
title: "Release new version"
65-
commit: "update version"
66-
publish: pnpm publish:ci
67-
version: pnpm publish:version
68-
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
71-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
- name: Publish
63+
run: pnpm run publish:ci
64+

0 commit comments

Comments
 (0)