Skip to content

Release

Release #6

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
ref:
description: The sha to build, otherwise build HEAD of branch
package:
required: true
type: choice
options:
- next-cache-handler-core
- next-cache-handler-redis
- next-cache-handler-s3
jobs:
release:
name: Release
runs-on: ubuntu-22.04
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Build package
run: npx turbo build --filter=${{ inputs.package }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx turbo release --filter=${{ inputs.package }}