Skip to content

Commit

Permalink
chore: trigger releases for core, evm and substrate (#426)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Related Issue Or Context
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Otherwise, describe context and motivation for change herre -->

Closes: #<issue>

## How Has This Been Tested? Testing details.
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have ensured that all acceptance criteria (or expected behavior)
from issue are met
- [ ] I have updated the documentation locally and in chainbridge-docs.
- [ ] I have added tests to cover my changes.
- [ ] I have ensured that all the checks are passing and green, I've
signed the CLA bot
  • Loading branch information
saadahmsiddiqui authored Aug 13, 2024
1 parent a2f3958 commit be08fa9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Publish Sygma SDK to GitHub Package Registry

on:
push:
branches: ['main']
paths: ['packages/core/**']
branches: ["main"]
paths: ["packages/core/**"]

jobs:
maybe-release:
name: release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
# you should probably do this after your regular CI checks passes
# it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
# you should probably do this after your regular CI checks passes
# it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
- uses: google-github-actions/release-please-action@v3
id: release
with:
Expand All @@ -30,10 +30,10 @@ jobs:

- uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@buildwithsygma'
registry-url: "https://registry.npmjs.org"
scope: "@buildwithsygma"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created }}
Expand All @@ -46,10 +46,10 @@ jobs:
run: yarn install --immutable
if: ${{ steps.release.outputs.releases_created }}

- run: yarn core:build
- run: yarn build
if: ${{ steps.release.outputs.releases_created }}

- run: npm publish --workspace=@buildwithsygma/core publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
18 changes: 9 additions & 9 deletions .github/workflows/release-evm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Publish Sygma SDK EVM package to GitHub Package Registry

on:
push:
branches: ['main']
paths: ['packages/evm/**']
branches: ["main"]
paths: ["packages/evm/**"]

jobs:
maybe-release:
name: release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
# you should probably do this after your regular CI checks passes
# it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
# you should probably do this after your regular CI checks passes
# it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
- uses: google-github-actions/release-please-action@v3
id: release
with:
Expand All @@ -30,10 +30,10 @@ jobs:

- uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@buildwithsygma'
registry-url: "https://registry.npmjs.org"
scope: "@buildwithsygma"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created }}
Expand All @@ -46,10 +46,10 @@ jobs:
run: yarn install --immutable
if: ${{ steps.release.outputs.releases_created }}

- run: yarn evm:build
- run: yarn build
if: ${{ steps.release.outputs.releases_created }}

- run: npm publish --workspace=@buildwithsygma/evm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
18 changes: 9 additions & 9 deletions .github/workflows/release-substrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Publish Sygma SDK Subsrate package to GitHub Package Registry

on:
push:
branches: ['main']
paths: ['packages/substrate/**']
branches: ["main"]
paths: ["packages/substrate/**"]

jobs:
maybe-release:
name: release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
# you should probably do this after your regular CI checks passes
# it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
# you should probably do this after your regular CI checks passes
# it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
- uses: google-github-actions/release-please-action@v3
id: release
with:
Expand All @@ -30,10 +30,10 @@ jobs:

- uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@buildwithsygma'
registry-url: "https://registry.npmjs.org"
scope: "@buildwithsygma"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created }}
Expand All @@ -46,10 +46,10 @@ jobs:
run: yarn install --immutable
if: ${{ steps.release.outputs.releases_created }}

- run: yarn substrate:build
- run: yarn build
if: ${{ steps.release.outputs.releases_created }}

- run: npm publish --workspace=@buildwithsygma/substrate publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@buildwithsygma/core",
"version": "0.0.1",
"version": "1.0.0",
"description": "Core primitives for bridging and message passing",
"main": "dist-esm/index.js",
"types": "types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/evm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@buildwithsygma/evm",
"version": "0.0.1",
"version": "1.0.0",
"description": "Core primitives for bridging and message passing",
"main": "dist-esm/index.js",
"types": "types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/substrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@buildwithsygma/substrate",
"version": "0.0.1",
"version": "1.0.0",
"description": "Core primitives for bridging and message passing",
"main": "dist-esm/index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit be08fa9

Please sign in to comment.