Skip to content

Commit

Permalink
chore: add create release draft workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Sep 19, 2024
1 parent 5a4c0b9 commit 24bda85
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Create Release Draft

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
create-release-draft:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: yarn

- name: Build
run: yarn build

- name: Create compressed packages
run: |
cd packages
for dir in */; do
cd "$dir"
npm pack
cd ..
done
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
tag: ${{ github.ref }}
files: |
packages/*/*.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 24bda85

Please sign in to comment.