Skip to content

Framework: Load Date module early since it has its own loader #10

Framework: Load Date module early since it has its own loader

Framework: Load Date module early since it has its own loader #10

Workflow file for this run

name: Release
permissions:
contents: write
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Create archive
run: bunx roll archive -y
- name: Install pipeline
run: mkdir -p publish && cd publish && git clone https://github.com/tangibleinc/pipeline
- name: Add latest tag as needed
uses: EndBug/latest-tag@latest
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
- name: Before release script
run: bun run publish/pipeline/before-release.ts
- name: Release tag
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
body_path: publish/release.md
files: publish/*.zip
- name: Release preview at latest commit
uses: softprops/action-gh-release@v2
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
body_path: publish/release.md
files: publish/*.zip
tag_name: latest
make_latest: true
- name: After release script
run: bun run publish/pipeline/after-release.ts