Skip to content

feat(linter/type-aware): include range with tsconfig diagnostics (#15… #14

feat(linter/type-aware): include range with tsconfig diagnostics (#15…

feat(linter/type-aware): include range with tsconfig diagnostics (#15… #14

name: Release @oxc-project/runtime
permissions: {}
on:
workflow_dispatch:
push:
branches:
- main
paths:
- npm/runtime/package.json
- .github/workflows/release_runtime.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.check.outputs.version }}
version_changed: ${{ steps.check.outputs.version_changed }}
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: ./.github/actions/check-version
id: check
with:
file-name: npm/runtime/package.json
file-url: https://unpkg.com/@oxc-project/runtime/package.json
build:
needs: check
if: needs.check.outputs.version_changed == 'true'
name: Release @oxc-project/runtime
runs-on: ubuntu-latest
permissions:
id-token: write # for `pnpm publish --provenance`
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
- run: npm install -g npm@latest # For trusted publishing support
# Trusted publishing is configured, publish token is not required.
- name: Trusted Publish
working-directory: npm/runtime
run: pnpm publish --provenance --access public --no-git-checks