Skip to content

publish

publish #7

Workflow file for this run

name: publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
- uses: oven-sh/setup-bun@v2
with:
node-version: "20"
registry-url: https://registry.npmjs.org/
- run: bun install
- run: bun run lint
- run: bun run build
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: actions/setup-node@v2
with:
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}