mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
34 lines
948 B
YAML
34 lines
948 B
YAML
name: Release
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- canary
|
|
permissions:
|
|
contents: read
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
jobs:
|
|
release:
|
|
# npm trusted publishing (OIDC) is only supported on GitHub-hosted `ubuntu-latest` runners.
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
permissions:
|
|
id-token: write
|
|
contents: write
|
|
container:
|
|
image: node:24
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
|
|
with:
|
|
fetch-depth: 1
|
|
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
|
|
- name: pnpm setup
|
|
uses: pnpm/action-setup@738f428026a1f5a72398de22aeed83d859c4a660
|
|
- name: Install packages
|
|
run: pnpm install --frozen-lockfile --prefer-offline
|
|
- name: Publish release
|
|
run: pnpm release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|