Skip to content

Commit

Permalink
ci: added release action
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelPanic92 authored Jul 24, 2024
1 parent 396a728 commit fc2d0b4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Setup Corepack
run: |
corepack enable
corepack prepare npm@10.8.1 --activate
- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Run Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release

0 comments on commit fc2d0b4

Please sign in to comment.