Skip to content

Release

Release #87

Workflow file for this run

name: Release
permissions: {}
on:
push:
branches:
- release-pr
workflow_dispatch:
inputs:
version:
required: false
type: string
issue-number:
required: false
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: oxc-project/oxc
ref: main
path: oxc
persist-credentials: false
- name: Install Tools
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50
with:
tool: just
- run: cd oxc && just website ..
- run: rm -rf oxc
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: .node-version
cache: pnpm # zizmor: ignore[cache-poisoning]
- run: pnpm install --frozen-lockfile
- run: pnpm run fmt --write ./src/docs/guide/usage/linter
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.OXC_BOT_PAT }}
commit-message: Release ${{ inputs.version }}
branch: release
branch-suffix: timestamp
title: Release ${{ inputs.version }}
body: From https://github.com/oxc-project/oxc/pull/${{ inputs.issue-number }}
assignees: Boshen
base: main