Release #90
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: 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 Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8.12.1 | |
run_install: true | |
- name: Install turbo globally | |
run: pnpm install -g turbo | |
- name: Build packages | |
run: rm bun.lockb && pnpm turbo run build | |
- name: Apply version changes to packages | |
run: pnpm 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: pnpm recursive publish | |
env: | |
NPM_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 |