Skip to content

publish

publish #1

Workflow file for this run

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 }}