Skip to content

Release

Release #72

Workflow file for this run

name: Release
on:
workflow_dispatch:
jobs:
release:
name: Release to NPM
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build packages
run: bun run build
- name: Apply version changes to packages
run: bun run changeset:version
- name: Commit package.json changes
uses: EndBug/add-and-commit@v9
with:
commit: "--signoff"
default_author: github_actor
message: "chore: release"
push: true
- name: Recursive Release
run: turbo run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# docker:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# service-name: []
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Verify Changed files
# uses: dorny/paths-filter@v2
# id: verify-changed-files
# with:
# filters: |
# service:
# - 'services/${{ matrix.service-name }}/src/**'
# - 'services/${{ matrix.service-name }}/package.json'
# - name: Set up QEMU
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/setup-buildx-action@v2
# - name: Login to GCR
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/build-push-action@v3
# with:
# context: .
# push: true
# tags: ghcr.io/${{ github.repository }}/${{ matrix.service-name }}:latest
# file: services/${{ matrix.service-name }}/Dockerfile