Skip to content

Commit b0391e0

Browse files
committed
Add GitHub publishing.
1 parent 4466f39 commit b0391e0

2 files changed

Lines changed: 10 additions & 23 deletions

File tree

.github/workflows/publish-package.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,16 @@ jobs:
3838
env:
3939
REDIS_URL: redis://redis:6379
4040
run: bun run test
41+
42+
- name: Copy extra files
43+
run: cp ./README.md ./LICENSE ./packages/cache
4144

42-
- name: Publish package
45+
- name: Publish package to NPM
46+
env:
47+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_CONFIG_TOKEN }}
48+
run: cd ./packages/cache && bun publish --access public --tolerate-republish
49+
50+
- name: Publish package to GitHub
4351
env:
4452
NPM_CONFIG_TOKEN: ${{ secrets.NPM_CONFIG_TOKEN }}
45-
run: cd ./packages/live && bun publish --access public
53+
run: bun publish --access public --registry https://npm.pkg.github.com --tolerate-republish

packages/cache/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)