Skip to content

chore: release v1.0.2-beta.1 #52

chore: release v1.0.2-beta.1

chore: release v1.0.2-beta.1 #52

Workflow file for this run

name: release
env:
NODE_VERSION: lts/*
BUN_VERSION: latest
PACKAGE_DIR: ${{github.workspace}}/packages/unplugin-typia
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
jsr:
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
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 }}
registry-url: 'https://registry.npmjs.org'
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- run: bun run jsr-to-npm-mirror.ts
working-directory: ${{github.workspace}}/.github
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
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}}