Files
playlet-piped/.github/workflows/release.yml
T
2023-04-21 17:01:55 -04:00

37 lines
903 B
YAML

name: Release
on:
push:
branches: [ "main" ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build Playlet
run: npm run build:release:ci
- name: Delete unstable release
- uses: dev-drprasad/delete-tag-and-release@v1.0
with:
tag_name: unstable
github_token: ${{ secrets.GH_TOKEN }}
- name: Create unstable release
run: gh release create unstable ./release/playlet.zip ./playlet/src/lib/playlet-lib.zip --notes "This is an automated release." --prerelease --title unstable
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}