publish #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |