mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 16:36:22 +02:00
add rowboatx npm publish flow
This commit is contained in:
parent
428faea4f0
commit
5be3b5c62f
2 changed files with 63 additions and 1 deletions
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