47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: Canary Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: "Branch to release from (defaults to current branch)"
|
|
required: false
|
|
type: string
|
|
|
|
jobs:
|
|
canary-release:
|
|
name: Canary Release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v7
|
|
with:
|
|
ref: ${{ inputs.branch || github.ref }}
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "20"
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Configure npm authentication
|
|
run: |
|
|
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build all packages
|
|
run: pnpm build
|
|
|
|
- name: Publish Snapshot
|
|
run: pnpm release:snapshot
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|