Skip to content

release

release #45

Workflow file for this run

name: release
env:
NODE_VERSION: lts/*
BUN_VERSION: latest
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
jsr:
env:
PACKAGE_DIR: ${{github.workspace}}/packages/unplugin-typia
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- run: bun i --frozen-lockfile
- run: bun run publish:jsr
working-directory: ${{env.PACKAGE_DIR}}
npm:
needs:
- jsr
runs-on: ubuntu-latest
timeout-minutes: 10
environment: Release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- run: bun i --frozen-lockfile
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
working-directory: ${{env.PACKAGE_DIR}}
release:
needs:
- jsr
- npm
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bunx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}