-
Notifications
You must be signed in to change notification settings - Fork 8
72 lines (61 loc) · 1.95 KB
/
publishPackages.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Publish packages
on:
push:
tags:
- "@cryptkeeperzk/providers-*"
env:
CRYPTKEEPER_DEBUG: false
USER_MNEMONIC: false
E2E: false
METAMASK_EXTENSION_ID: "nkbihfbeogaeaoehlefnkodbefgpgknn"
METAMASK_VERSION: "10.28.1"
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
FREIGHT_TRUST_NETWORK: ${{ secrets.FREIGHT_TRUST_NETWORK }}
PULSECHAIN_API_KEY: ${{ secrets.PULSECHAIN_API_KEY }}
BANDADA_API_URL: ${{ vars.BANDADA_API_URL }}
BANDADA_URL: ${{ vars.BANDADA_URL }}
TARGET: "chrome"
DEMO_URL: ${{ vars.DEMO_URL }}
MERKLE_MOCK_SERVER: ${{ vars.MERKLE_MOCK_SERVER }}
MANIFEST_VERSION: 3
VERIFIABLE_CREDENTIALS: false
WEBPACK_ANALYZER: false
TEST_GROUP_ID: ${{ vars.TEST_GROUP_ID }}
TEST_GROUP_API_KEY: ${{ vars.TEST_GROUP_API_KEY }}
TEST_GROUP_INVITE_CODE: ${{ vars.TEST_GROUP_INVITE_CODE }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish-packages:
strategy:
fail-fast: false
matrix:
node-version: [18]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Setup publisher
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
pnpm config set commit-hooks false
pnpm config set git-checks false
pnpm config set always-auth true
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- run: pnpm install --frozen-lockfile --prefer-offline
- run: |-
pnpm run build
- name: Publish
run: |-
pnpm run publish:packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}