Skip to content

Commit f0eda0a

Browse files
committed
ci: add npm publish
1 parent b175282 commit f0eda0a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
version:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 7.2.1
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18.x
18+
cache: 'pnpm'
19+
- run: pnpm install --frozen-lockfile
20+
- run: |
21+
echo "//registry.npmjs.org/:_authToken="${{secrets.NPM_TOKEN}}"" > ~/.npmrc
22+
shell: sh
23+
- run: pnpm -r --filter='./packages/*' publish --access public

0 commit comments

Comments
 (0)