readme & github action build pipeline

This commit is contained in:
kaj
2023-05-19 19:42:54 -08:00
parent 8fa9ec5fb7
commit 6d2045ed15
4 changed files with 54 additions and 3 deletions

View File

@@ -0,0 +1,43 @@
name: release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: upload build artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./lib/index.js
asset_name: plugin.js
asset_content_type: application/javascript

View File

@@ -4,6 +4,12 @@ This is a [StableStudio plugin](https://github.com/Stability-AI/StableStudio) bo
- explain how to get a plugin built
```
yarn build
npm run build
```
- explain basic outline of functions
## Learn more
@@ -12,4 +18,7 @@ This is a [StableStudio plugin](https://github.com/Stability-AI/StableStudio) bo
## Deploying
- explain pushing to github to make CI build and create artifacts stablestudio can import
- explain pushing to github to make CI build and create artifacts stablestudio can import
```
git push
```

View File

@@ -8,7 +8,7 @@
],
"scripts": {
"clean": "rimraf lib && rimraf node_modules",
"build:types": "ttsc --project tsconfig.json",
"build:types": "ttsc",
"build:javascript": "tsx scripts/Build.ts",
"build": "yarn build:types && yarn build:javascript",
"dev": "nodemon --watch src --ext ts,tsx,json --exec \"yarn build\""

View File

@@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": [
"src/**/*"
],