Skip to content

Commit

Permalink
chore: use moon to manage version
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Mar 3, 2024
1 parent 7afe274 commit ef903a3
Show file tree
Hide file tree
Showing 6 changed files with 903 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
with:
fetch-depth: 0
- run: corepack enable
- uses: moonrepo/setup-toolchain@v0
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
Expand All @@ -35,8 +35,6 @@ jobs:
with:
terraform_version: '1.5.7'
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- uses: moonrepo/setup-toolchain@v0
if: ${{ steps.release.outputs.release_created }}
- name: deploy to CDN
if: ${{ steps.release.outputs.release_created }}
run: moon ci :deploy
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: moonrepo/setup-toolchain@v0
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- uses: moonrepo/setup-toolchain@v0
- run: moon ci :build
- uses: moonrepo/run-report-action@v1
if: success() || failure()
Expand Down
5 changes: 3 additions & 2 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
node:
# The version to use. Must be a semantic version that includes major, minor, and patch.
# We suggest using the latest active LTS version: https://nodejs.org/en/about/releases
# version: '20.0.0'
version: 20.11.1

# The package manager to use when managing dependencies.
# Accepts "npm" (default), "pnpm", "yarn", or "bun".
packageManager: yarn

# The version of the package manager (above) to use.
yarn: {}
yarn:
version: 4.1.0

# Add `node.version` as a constraint in the root `package.json` `engines`.
addEnginesConstraint: true
Expand Down
Loading

0 comments on commit ef903a3

Please sign in to comment.