-
-
Notifications
You must be signed in to change notification settings - Fork 32
49 lines (40 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish to NPM
on: [workflow_dispatch]
defaults:
run:
working-directory: src
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version-file: ./src/.nvmrc
cache: "npm"
cache-dependency-path: "./src/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Copy README.md
run: npm run copy:readme
- name: Build
run: npm run build
env:
NODE_ENV: production
- name: Set public publishing
run: npm config set access public
- name: Publish Dumbo package on NPM 📦
run: npm publish --w @event-driven-io/dumbo
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_ENV: production
- name: Publish Pongo package on NPM 📦
run: npm publish --w @event-driven-io/pongo
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_ENV: production