Skip to content

Commit

Permalink
ci: use github actions to create release
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoMacro committed Jul 13, 2023
1 parent 3c51c95 commit 68aa2f0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/[email protected]
with:
node-version: "18"

- name: Install pnpm
run: corepack enable && corepack prepare pnpm@latest --activate

- name: Install dependencies
run: pnpm install

- name: Build Docen
run: pnpm -r bundle

- name: Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: "packages/docen/dist/bundle/**"

0 comments on commit 68aa2f0

Please sign in to comment.