Skip to content

Commit ec817e3

Browse files
chore : Add pnpm publish GHA (#1264)
* Add pnpm publish GHA * update "on" event for publish GHA * update github action * remove clone ref * cleanup * fix logic in "changed-packages" step * temp update action to run on any branch * update action to install and build both * test modifications for validation * update pkg versions * fix action to check all changed packages * update changed package list, npm secret name * fix pnpm publish script * add step to authn with npm * cleanup github action * cleanup github action * cleanup, revert temporary changes * revert package json changes
1 parent 92e34f2 commit ec817e3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Packages to npm
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4
12+
13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v4
15+
16+
- name: Install and build dependencies
17+
run: |
18+
pnpm install
19+
pnpm build
20+
21+
- name: Authenticate to npm
22+
run: |
23+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
24+
25+
- name: Publish packages to npm
26+
run: pnpm publish:all

0 commit comments

Comments
 (0)