Skip to content

Commit

Permalink
chore(): Add auto-realease action
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanTaheriGhaleTaki committed Jan 11, 2025
1 parent e2d0f1c commit dfc9416
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/auto-realease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy

on:
release:
types: [published]

jobs:
init:
name: 🚩 Initialize
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

release:
name: 🚀 Release
needs: init
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp .github/.releaserc.yml .
npm i -g semantic-release @semantic-release/changelog @semantic-release/git
semantic-release

0 comments on commit dfc9416

Please sign in to comment.