Skip to content

combine namespace and key in readObject #5

combine namespace and key in readObject

combine namespace and key in readObject #5

name: Deploy Package
on:
push:
branches:
- main
jobs:
deploy-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: antongolub/action-setup-bun@v1
with:
bun-version: 1.0.4
bun-config: '{"install": {"production": false}}'
cache: true
cache-bin: true
- uses: actions/cache@v3
id: bun-cache
with:
path: ./node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-
- run: bun install
if: ${{ steps.bun-cache.outputs.cache-hit != 'true' }}
- run: bun run build
- run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm publish --access public