Skip to content

Commit 61d246d

Browse files
author
Siddharth Shah
committed
fix: 🐛 removed semantic release and make it simple for package publish
1 parent ea2a9a5 commit 61d246d

1 file changed

Lines changed: 9 additions & 35 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,25 @@
1-
name: CI/CD & Semantic Release
2-
1+
name: Release
32
on:
43
push:
54
branches:
65
- main
7-
pull_request:
8-
branches:
9-
- main
10-
116
jobs:
12-
test:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout Code
16-
uses: actions/checkout@v3
17-
18-
- name: Set up Node.js
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 22
22-
cache: 'yarn'
23-
24-
- name: Install Dependencies
25-
run: yarn install --frozen-lockfile
26-
27-
- name: Run Security Audit (Critical Issues Only)
28-
run: yarn audit --level critical --groups dependencies
29-
307
release:
8+
name: Release
319
runs-on: ubuntu-latest
32-
needs: test
3310
steps:
34-
- name: Checkout Code
11+
- name: Checkout
3512
uses: actions/checkout@v3
36-
37-
- name: Set up Node.js
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
3816
uses: actions/setup-node@v3
3917
with:
4018
node-version: 22
41-
registry-url: "https://registry.npmjs.org/"
42-
cache: 'yarn'
43-
4419
- name: Install Dependencies
4520
run: yarn install --frozen-lockfile
46-
47-
- name: Publish package with Semantic Release
21+
- name: Release
4822
env:
49-
GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5024
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51-
run: npx semantic-release
25+
run: npx semantic-release

0 commit comments

Comments
 (0)