Skip to content

Commit

Permalink
create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trueberryless committed Nov 18, 2024
1 parent 8563cf6 commit ce25c45
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
if: ${{ github.repository_owner == 'trueberryless-org' }}
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup PNPM
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install Dependencies
run: pnpm i

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: pnpm run version
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}

0 comments on commit ce25c45

Please sign in to comment.