From 3efbf0e9e3edfb6666c620c2f27b2338c89defbf Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Fri, 29 Sep 2023 11:47:35 -0700 Subject: [PATCH] ci: Use new `setup-toolchain` action. (#52) * Hrmm. * Add action. * Update actions. * Add tools file. * Update actions. * Show color. * Up moon. --- .github/workflows/ci.yml | 9 +++--- .github/workflows/pr.yml | 4 +-- package.json | 2 +- yarn.lock | 68 ++++++++++++++++++++-------------------- 4 files changed, 40 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 885b018..4bf3b85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,19 +13,18 @@ jobs: node-version: [16, 18, 20] fail-fast: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: moonrepo/setup-toolchain@v0 with: - cache: yarn - node-version: ${{ matrix.node-version }} + auto-install: true - uses: moonrepo/tool-version-action@v1 with: node: ${{ matrix.node-version }} - run: yarn install --immutable - run: yarn setup - - run: yarn moon ci --log debug + - run: moon ci --log debug --color env: MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }} MOONBASE_ACCESS_KEY: ${{ secrets.MOONBASE_ACCESS_KEY }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 335a326..a44754f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,10 +5,8 @@ jobs: name: Conventional title runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 - with: - cache: yarn - uses: beemojs/conventional-pr-action@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 6a8be91..13a1631 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ ], "devDependencies": { "@babel/core": "^7.23.0", - "@moonrepo/cli": "^1.14.0", + "@moonrepo/cli": "^1.14.2", "@moonrepo/dev": "workspace:*", "eslint": "^8.50.0", "jest": "^29.7.0", diff --git a/yarn.lock b/yarn.lock index 03fa388..8add5d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2423,17 +2423,17 @@ __metadata: languageName: node linkType: hard -"@moonrepo/cli@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/cli@npm:1.14.0" - dependencies: - "@moonrepo/core-linux-arm64-gnu": ^1.14.0 - "@moonrepo/core-linux-arm64-musl": ^1.14.0 - "@moonrepo/core-linux-x64-gnu": ^1.14.0 - "@moonrepo/core-linux-x64-musl": ^1.14.0 - "@moonrepo/core-macos-arm64": ^1.14.0 - "@moonrepo/core-macos-x64": ^1.14.0 - "@moonrepo/core-windows-x64-msvc": ^1.14.0 +"@moonrepo/cli@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/cli@npm:1.14.2" + dependencies: + "@moonrepo/core-linux-arm64-gnu": ^1.14.2 + "@moonrepo/core-linux-arm64-musl": ^1.14.2 + "@moonrepo/core-linux-x64-gnu": ^1.14.2 + "@moonrepo/core-linux-x64-musl": ^1.14.2 + "@moonrepo/core-macos-arm64": ^1.14.2 + "@moonrepo/core-macos-x64": ^1.14.2 + "@moonrepo/core-windows-x64-msvc": ^1.14.2 detect-libc: ^2.0.2 dependenciesMeta: "@moonrepo/core-linux-arm64-gnu": @@ -2452,55 +2452,55 @@ __metadata: optional: true bin: moon: moon - checksum: d116b6859cb9022878457c70af8850bc19f17db2d24f3f7e655b9999c6f3e3652782687b0ee277f870a000db1204fdefd013b367c55690b13c5d6b9906f142ca + checksum: 37b1bf2c7644b6bbb2696d4627215d2c4078d16f4135cc5b19cc3f6922a83fc4e3cce667e77437a6f669af3e342b650da0381b1cf7dd740c9cea138b8a7ca44e languageName: node linkType: hard -"@moonrepo/core-linux-arm64-gnu@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-linux-arm64-gnu@npm:1.14.0" +"@moonrepo/core-linux-arm64-gnu@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-linux-arm64-gnu@npm:1.14.2" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@moonrepo/core-linux-arm64-musl@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-linux-arm64-musl@npm:1.14.0" +"@moonrepo/core-linux-arm64-musl@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-linux-arm64-musl@npm:1.14.2" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@moonrepo/core-linux-x64-gnu@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-linux-x64-gnu@npm:1.14.0" +"@moonrepo/core-linux-x64-gnu@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-linux-x64-gnu@npm:1.14.2" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@moonrepo/core-linux-x64-musl@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-linux-x64-musl@npm:1.14.0" +"@moonrepo/core-linux-x64-musl@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-linux-x64-musl@npm:1.14.2" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@moonrepo/core-macos-arm64@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-macos-arm64@npm:1.14.0" +"@moonrepo/core-macos-arm64@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-macos-arm64@npm:1.14.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@moonrepo/core-macos-x64@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-macos-x64@npm:1.14.0" +"@moonrepo/core-macos-x64@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-macos-x64@npm:1.14.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@moonrepo/core-windows-x64-msvc@npm:^1.14.0": - version: 1.14.0 - resolution: "@moonrepo/core-windows-x64-msvc@npm:1.14.0" +"@moonrepo/core-windows-x64-msvc@npm:^1.14.2": + version: 1.14.2 + resolution: "@moonrepo/core-windows-x64-msvc@npm:1.14.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -9649,7 +9649,7 @@ __metadata: resolution: "moon-dev@workspace:." dependencies: "@babel/core": ^7.23.0 - "@moonrepo/cli": ^1.14.0 + "@moonrepo/cli": ^1.14.2 "@moonrepo/dev": "workspace:*" eslint: ^8.50.0 jest: ^29.7.0