-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (31 loc) · 1.25 KB
/
publish.yaml
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
name: publish
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y protobuf-compiler # deno_kv needs this
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
scope: '@project-gauntlet'
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: npm ci
- run: npm run build --workspace @project-gauntlet/api
- run: npm run build --workspace @project-gauntlet/deno
- run: npm run build --workspace @project-gauntlet/react
- run: npm run build --workspace @project-gauntlet/react-renderer
- run: npm run build --workspace @project-gauntlet/core
# TODO
# - run: cargo build --release
- run: git config --global user.name "${GITHUB_ACTOR}"
- run: git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm run release --workspace @project-gauntlet/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}