mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
38 lines
727 B
YAML
38 lines
727 B
YAML
name: Test Publish
|
|
|
|
on:
|
|
push:
|
|
|
|
permissions:
|
|
contents: read
|
|
# For provenance generation
|
|
id-token: write
|
|
|
|
jobs:
|
|
# Build job
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
environment: NPM Deploy
|
|
strategy:
|
|
matrix:
|
|
package: ["federation", "client"]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install
|
|
run: cd ${{ matrix.package }} && bun install
|
|
|
|
- name: Build
|
|
run: bun run build
|
|
|
|
- name: Publish to NPM
|
|
run: npm publish --dry-run
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Publish to JSR
|
|
run: bunx jsr publish --allow-slow-types --allow-dirty --dry-run
|