Merge branch 'main' into feature/test-parser

This commit is contained in:
Bruce Röttgers
2025-04-30 22:04:05 +02:00
9 changed files with 875 additions and 1 deletions

40
.github/workflows/publish-types.yaml vendored Normal file
View File

@@ -0,0 +1,40 @@
# Example from https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
name: Publish Types Package to npmjs
on:
push:
tags:
- "types/*"
defaults:
run:
working-directory: types
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "pnpm"
cache-dependency-path: "types/pnpm-lock.yaml"
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile
- run: pnpm tsc
- run: pnpm publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}