Skip to content

Commit

Permalink
build: add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Apr 12, 2024
1 parent ae67a29 commit 45425f9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"baseBranch": "main",
"access": "public"
}
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
branches:
- main
- prerelease

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js Env
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install Dependencies
run: corepack enable && pnpm i

- name: Create Release Pull Request or Publish
# https://github.com/changesets/action
uses: changesets/action@v1
with:
publish: pnpm release
commit: "chore: release"
title: "chore: release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 45425f9

Please sign in to comment.