Skip to content

Commit

Permalink
ci: 👷 Add CI Build for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobart2967 committed Aug 13, 2024
1 parent 346ef6c commit db04258
Show file tree
Hide file tree
Showing 9 changed files with 8,316 additions and 810 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release
on:
push:
branches:
- main

permissions:
contents: write
packages: write

jobs:
release-contracts:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Install dependencies
run: yarn
- name: Build Project
run: yarn build
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: cd projects/skwid-contracts && yarn run semantic-release

release-app:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Install dependencies
run: yarn
- name: Build Project
run: yarn build
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: cd projects/skwid && yarn run semantic-release
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 22.5.1
Loading

0 comments on commit db04258

Please sign in to comment.