Skip to content

Commit

Permalink
👷 chore: Add back snapshot release (#453)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
roninjin10 and Will Cory authored Sep 4, 2023
1 parent 1124e34 commit c23302a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 51 deletions.
17 changes: 17 additions & 0 deletions .changeset/pretty-pianos-hear.md
Original file line number Diff line number Diff line change
@@ -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`
33 changes: 0 additions & 33 deletions .github/workflows/prerelease-exit.yml

This file was deleted.

28 changes: 10 additions & 18 deletions .github/workflows/prerelease.yml → .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -37,23 +41,11 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Check for pre.json file existence
id: check_files
uses: andstor/[email protected]
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 }}

1 comment on commit c23302a

@vercel
Copy link

@vercel vercel bot commented on c23302a Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

evmts-docs – ./

evmts-docs-git-main-evmts.vercel.app
evmts-docs-evmts.vercel.app
evmts.dev

Please sign in to comment.