Skip to content

Merge branch 'workflow' #4

Merge branch 'workflow'

Merge branch 'workflow' #4

Workflow file for this run

name: Release
on:
push:
branches:
- main
- workflow
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
registry-url: 'https://registry.npmjs.org'
scope: "@kanamone"
- run: bun install --frozen-lockfile
- run: bun run test
- run: bun run build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}