From 4e76697064e60ecfaef7de7473d674860ab82045 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:21:40 -0500 Subject: [PATCH] fix: publish nightly release for all packages --- .github/workflows/reusable-release.yml | 30 ++++++++++++-------------- package.json | 2 +- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 28a38ed6f6..a587f87fe9 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -289,19 +289,19 @@ jobs: run: | git config user.email "${{ github.actor }}@users.noreply.github.com" git config user.name ${{ github.actor }} - - - name: Install Dagger - uses: dagger/dagger-for-github@v3 - with: - install-only: true - version: "0.2.36" - - - name: Verify Docker image - run: | - dagger project init - dagger project update - dagger project update "github.com/3box/pipeline-tools/ci" - dagger do verify -p ${{ env.DAGGER_PLAN }} +# - +# name: Install Dagger +# uses: dagger/dagger-for-github@v3 +# with: +# install-only: true +# version: "0.2.36" +# - +# name: Verify Docker image +# run: | +# dagger project init +# dagger project update +# dagger project update "github.com/3box/pipeline-tools/ci" +# dagger do verify -p ${{ env.DAGGER_PLAN }} - name: Initialize and build code run: npm ci && npm run build @@ -313,6 +313,4 @@ jobs: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN - # This step can fail if nothing changed that warranted a new release. This is a nightly release and best - # effort, so this is ok. - npm run publish:nightly -- --yes || true + npm run publish:nightly -- --yes diff --git a/package.json b/package.json index dc97ffd9eb..0bd8575433 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "publish:release-candidate-followup": "npx lerna publish --dist-tag next --preid rc --no-verify-access --conventional-prerelease", "publish:release": "npx lerna publish --dist-tag latest --create-release github --no-verify-access --conventional-graduate bump minor", "publish:hotfix": "npx lerna publish --dist-tag latest --no-verify-access --conventional-graduate bump patch", - "publish:nightly": "npx lerna publish --dist-tag nightly --no-verify-access --no-push --canary --preid nightly", + "publish:nightly": "npx lerna publish --dist-tag nightly --no-verify-access --no-push --canary prerelease --preid nightly --force-publish", "format": "npx prettier --write 'packages/**/src/**/*{.ts,.tsx,.js}'", "lint": "npx lerna run lint && npx prettier --check packages/**/src/**/*.ts", "clean": "npm run clean:deps && npm run clean:coverage && npm run clean:build-artifacts",