mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-29 02:24:02 +02:00
Merge pull request #316 from rowboatlabs/action
add rowboatx npm publish flow
This commit is contained in:
commit
4e989342fc
2 changed files with 63 additions and 1 deletions
23
.github/workflows/rowboat-build.yml
vendored
23
.github/workflows/rowboat-build.yml
vendored
|
|
@ -23,4 +23,25 @@ jobs:
|
||||||
|
|
||||||
- name: Build Rowboat
|
- name: Build Rowboat
|
||||||
run: npm run build
|
run: npm run build
|
||||||
working-directory: apps/rowboat
|
working-directory: apps/rowboat
|
||||||
|
|
||||||
|
build-rowboatx:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
cache-dependency-path: 'apps/rowboat/package-lock.json'
|
||||||
|
node-version: '24'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
working-directory: apps/cli
|
||||||
|
|
||||||
|
- name: Build Rowboat
|
||||||
|
run: npm run build
|
||||||
|
working-directory: apps/cli
|
||||||
41
.github/workflows/x-publish.yml
vendored
Normal file
41
.github/workflows/x-publish.yml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
name: Publish to npm
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
run: npm ci
|
||||||
|
working-directory: apps/rowboat
|
||||||
|
|
||||||
|
# optional: run tests
|
||||||
|
# - run: npm test
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
working-directory: apps/rowboat
|
||||||
|
|
||||||
|
- name: Pack
|
||||||
|
run: npm pack
|
||||||
|
working-directory: apps/rowboat
|
||||||
|
|
||||||
|
- name: Publish to npm
|
||||||
|
run: npm publish --access public
|
||||||
|
working-directory: apps/rowboat
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue