Skip to content

Commit

Permalink
feat(release): setup release-it and add github wokflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbellamj committed May 1, 2024
1 parent 5303fb5 commit 0261dba
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release & Publish to github
on:
workflow_dispatch:
push:
branches: main

jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache dependencies dependencies
id: node-cache
uses: actions/cache@v3
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: yarn --ignore-scripts --prefer-offline --frozen-lockfile

- name: Initialize Git user
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR_EMAIL"
- name: Run Release
run: |
yarn global add release-it
release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_ACTION_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wallet-manager",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 0261dba

Please sign in to comment.