-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (27 loc) · 900 Bytes
/
Copy pathrelease.yml
File metadata and controls
29 lines (27 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Publish
# Publishes the @mettascript/* packages and their @metta-ts/* compatibility shims
# to npm with provenance (a signed link back to this repo and commit). Runs when a
# v* tag is pushed, or on demand.
on:
push:
tags: ["v*"]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # required for npm provenance attestations
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm -r build
- run: pnpm -r --filter "./packages/*" --filter "./compat/*" publish --access public --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}