mirror of
https://github.com/trycua/computer.git
synced 2026-01-04 04:19:57 -06:00
Create (untested) npm deploy workflows
This commit is contained in:
32
.github/workflows/publish-computer-ts.yml
vendored
Normal file
32
.github/workflows/publish-computer-ts.yml
vendored
Normal 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
32
.github/workflows/publish-core-ts.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user