Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from gentlementlegen/1.x
Browse files Browse the repository at this point in the history
fix: new release package flow
  • Loading branch information
gentlementlegen authored Dec 1, 2024
2 parents 85ae9cb + a640f25 commit f51ce8f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release-please

on:
workflow_dispatch:
push:
branches:
- 1.x

permissions:
contents: write
pull-requests: write

env:
HUSKY: 0

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
target-branch: 1.x

- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2

- name: Build
run: |
bun install --frozen-lockfile
bun run build
if: ${{ steps.release.outputs.release_created }}
- run: bun publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit f51ce8f

Please sign in to comment.