-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.65 KB
/
release.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
name: Release
on:
release:
types: [released]
permissions:
packages: write
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
GHP_PAT: ${{ secrets.GHP_PAT }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: true
- name: Setup .npmrc for pulling/publishing from/to github packages
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@valorem-labs-inc'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install packages, compile SDK, and build docs
run: |
pnpm i
pnpm codegen
pnpm gen-docs
- name: Deploy Docs to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit signatures
- name: Publish to Github Packages
run: pnpm ci:release
- name: Unset GHP scope, set NPM scope
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm config delete @valorem-labs-inc:registry --location project
pnpm config set @valorem-labs-inc:registry 'https://registry.npmjs.org' --location project
pnpm config set //registry.npmjs.org/:_authToken '${NODE_AUTH_TOKEN}' --location project
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm ci:release