-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (28 loc) · 1.04 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish to NPM
on:
push:
branches:
- deploy/npm # Change this to the branch you want to trigger the publish
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18' # Specify the Node.js version you need
registry-url: 'https://registry.npmjs.org'
- name: Install BeyondJS globally
run: npm install -g beyond
- name: Install dependencies
working-directory: src
run: npm install
- name: Build package
run: beyond build --pkg=pragmate-ui --distribution=npm --logs
- name: Publish to NPM
working-directory: src/.beyond/builds/npm/code
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public