All checks were successful
Publish Any Commit / build (push) Successful in 30s
33 lines
841 B
YAML
33 lines
841 B
YAML
name: Publish Any Commit
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Add git.kvant.cloud scope
|
|
run: npm config set @kvant:registry=https://git.kvant.cloud/api/packages/${{ github.repository_owner }}/npm/
|
|
|
|
- name: Login to git.kvant.cloud npm
|
|
run: npm config set -- '//git.kvant.cloud/api/packages/${{ github.repository_owner }}/npm/:_authToken' "${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}"
|
|
|
|
- name: Setup pnpm & install
|
|
uses: https://github.com/wyvox/action-setup-pnpm@v3
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- run: pnpm dlx publish --compact --bin
|