Skip to content

Commit

Permalink
feat: initial minor dapp release (#160)
Browse files Browse the repository at this point in the history
Signed-off-by: Urban Vidovič <urbanfoundit@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 8, 2024
1 parent 5702671 commit 90408b2
Show file tree
Hide file tree
Showing 8 changed files with 486 additions and 879 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "Swaylend/swaylend-monorepo" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["sway-lend-indexer", "indexer-sentio"],
"privatePackages": { "version": true, "tag": true }
}
5 changes: 5 additions & 0 deletions .changeset/great-years-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"swaylend-v2": minor
---

Initial minor release.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/release-dapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release dapp and Sync develop

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create Release Pull Request
uses: changesets/action@v1
with:
title: 'chore: dapp release'
commit: 'chore: dapp release'
publish: npx @changesets/cli tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

sync:
name: Sync develop
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Sync
run: |
git checkout develop
git merge main --ff-only
git push origin develop
2 changes: 1 addition & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swaylend-v2",
"version": "0.1.0",
"version": "0.0.0",
"license": "MIT",
"private": true,
"homepage": "https://app.swaylend.com",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.3.3",
"@graphql-typed-document-node/core": "^3.2.0",
"graphql": "^16.9.0"
"graphql": "^16.9.0",
"@changesets/cli": "^2.27.9"
},
"packageManager": "pnpm@9.11.0",
"engines": {
Expand Down
Loading

0 comments on commit 90408b2

Please sign in to comment.