Skip to content

Commit

Permalink
ci: add release-please workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Djiit committed Oct 20, 2024
1 parent ad51275 commit 5f1e9b0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write
packages: write

name: Release Please

jobs:
release-please:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Release-Please
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

- name: Install Node.js
if: ${{ steps.release.outputs.release_created == 'true' }}
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "npm"

- name: Build and publish packages
if: ${{ steps.release.outputs.release_created == 'true' }}
run: npm run publish

0 comments on commit 5f1e9b0

Please sign in to comment.