Skip to content

Commit

Permalink
build: switched to release-please & workspaces-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Dec 17, 2023
1 parent 6bd5505 commit 735fa74
Show file tree
Hide file tree
Showing 7 changed files with 1,810 additions and 2,114 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/config.json

This file was deleted.

29 changes: 18 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,46 @@ permissions:
contents: write
pull-requests: write

defaults:
run:
shell: bash

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
if: steps.release.outputs.releases_created == 'true'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install
if: steps.release.outputs.releases_created == 'true'
uses: ./.github/actions/install
with:
node-version: ${{ env.NODE_VERSION }}

- name: Build
if: steps.release.outputs.releases_created == 'true'
uses: ./.github/actions/build

- name: Commit & Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
commit: "chore(release): publish"
title: "chore(release): publish"
- name: Publish
if: steps.release.outputs.releases_created == 'true'
run: npx workspaces-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: tada5hi/action-docker-image-publish@v3
if: steps.changesets.outputs.published == 'true'
if: steps.release.outputs.releases_created == 'true'
with:
registryTag: |
latest
${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}
${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
9 changes: 9 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"packages/client-ui": "2.4.10",
"packages/client-vue": "2.4.10",
"packages/core": "2.4.10",
"packages/server-api": "2.4.10",
"packages/server-core": "2.4.10",
"packages/server-realtime": "2.4.10",
"packages/server-train-manager": "2.4.10"
}
Loading

0 comments on commit 735fa74

Please sign in to comment.