Create (untested) npm deploy workflows

This commit is contained in:
Morgan Dean
2025-06-25 16:19:25 -07:00
parent 83499550e3
commit 4625b65bab
7 changed files with 64 additions and 131 deletions

View File

@@ -0,0 +1,32 @@
name: Publish @cua/computer to npm
on:
push:
tags:
- 'computer-v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
working-directory: ./libs/typescript/computer
run: npm ci
- name: Build package
working-directory: ./libs/typescript/computer
run: npm run build --if-present
- name: Publish to npm
working-directory: ./libs/typescript/computer
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

32
.github/workflows/publish-core-ts.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Publish @cua/core to npm
on:
push:
tags:
- 'core-v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
working-directory: ./libs/typescript/core
run: npm ci
- name: Build package
working-directory: ./libs/typescript/core
run: npm run build --if-present
- name: Publish to npm
working-directory: ./libs/typescript/core
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}