From c23302a9623a968917df19de8dfa2c56b4612712 Mon Sep 17 00:00:00 2001 From: Will Cory Date: Mon, 4 Sep 2023 00:01:28 -0700 Subject: [PATCH] :construction_worker: chore: Add back snapshot release (#453) ## Description Adds back snapshot release to publish @main every merge to develop ## Testing Explain the quality checks that have been done on the code changes ## Additional Information - [ ] I read the [contributing docs](../docs/contributing.md) (if this is your first contribution) Your ENS/address: Co-authored-by: Will Cory --- .changeset/pretty-pianos-hear.md | 17 ++++++++++ .github/workflows/prerelease-exit.yml | 33 ------------------- .../{prerelease.yml => snapshot.yml} | 28 ++++++---------- 3 files changed, 27 insertions(+), 51 deletions(-) create mode 100644 .changeset/pretty-pianos-hear.md delete mode 100644 .github/workflows/prerelease-exit.yml rename .github/workflows/{prerelease.yml => snapshot.yml} (61%) diff --git a/.changeset/pretty-pianos-hear.md b/.changeset/pretty-pianos-hear.md new file mode 100644 index 0000000000..b45a1612ec --- /dev/null +++ b/.changeset/pretty-pianos-hear.md @@ -0,0 +1,17 @@ +--- +"@evmts/bundler": patch +"@evmts/esbuild-plugin": patch +"@evmts/rollup-plugin": patch +"@evmts/rspack-plugin": patch +"@evmts/vite-plugin": patch +"@evmts/webpack-plugin": patch +"@evmts/cli": patch +"@evmts/config": patch +"@evmts/core": patch +"@evmts/ethers": patch +"svelte-ethers": patch +"@evmts/ts-plugin": patch +"@evmts/tsconfig": patch +--- + +Started publishing every commit to main so all EVMts changes can be used early. To use the latest main branch release install with `@main` tag. e.g. `npm install @evmts/ts-plugin@main` diff --git a/.github/workflows/prerelease-exit.yml b/.github/workflows/prerelease-exit.yml deleted file mode 100644 index f03e249c6b..0000000000 --- a/.github/workflows/prerelease-exit.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Exit Prerelease Mode - -on: - workflow_dispatch: - inputs: - branch: - description: "Exit prerelease mode on release branch" - type: string - default: "main" - required: true - -jobs: - exit_prerelease: - name: Changesets Exit Prerelease - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - name: Checkout Repo - with: - submodules: recursive - - - name: "Setup" - uses: ./.github/actions/setup - - - name: Remove pre.json - run: npx rimraf .changeset/pre.json - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Exit prerelease mode - # Commit these changes to the branch workflow is running against - branch: ${{ github.event.inputs.branch }} - diff --git a/.github/workflows/prerelease.yml b/.github/workflows/snapshot.yml similarity index 61% rename from .github/workflows/prerelease.yml rename to .github/workflows/snapshot.yml index d0cb4aa698..a560aab5ea 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/snapshot.yml @@ -1,13 +1,17 @@ -name: Prerelease 🚀 +name: Snapshot 🚀 on: workflow_dispatch: + push: + branches: + - main + concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: prerelease: - name: Changests Prerelease + name: Changests Snapshot if: github.repository == 'evmts/evmts-monorepo' runs-on: ubuntu-latest # Permissions necessary for Changesets to push a new branch and open PRs @@ -37,23 +41,11 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Check for pre.json file existence - id: check_files - uses: andstor/file-existence-action@v2.0.0 - with: - files: ".changeset/pre.json" - - - name: Enter next prerelease mode - # If .changeset/pre.json does not exist and we did not recently exit - # prerelease mode, enter prerelease mode with tag next - if: steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, 'Exit prerelease') - run: npx changeset pre enter next - - name: Create next version PR or publish 🚀 - uses: changesets/action@v1 + - name: Publish snapshots + uses: seek-oss/changesets-snapshot@v0 with: - version: pnpm release:version - publish: pnpm release:publish + pre-publish: pnpm nx run-many --targets=build,build:dist --skip-nx-cache env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}