forked from privacy-scaling-explorations/maci
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.22 KB
/
e2e.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
50
51
name: CI
on:
push:
branches: [master, dev]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
e2e:
uses: ./.github/workflows/reusable-e2e.yml
npm-publish:
needs: e2e
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Initialize Project
run: |
npm install
npx lerna bootstrap
npm run build
- name: Compile Contracts
run: |
cd contracts
npm run compileSol
- name: Publish Project
run: |
# Prevent `git commit error` when running `lerna version`
# It will not pushed to GitHub. It is ephemeral
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
lerna version 0.0.0-ci.$(git rev-parse --short HEAD) --no-push --yes
lerna publish from-git --dist-tag ci --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}