Skip to content

Commit

Permalink
chore: migrate CI to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
s1moe2 committed Oct 4, 2024
1 parent 11c4701 commit 5f421aa
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .circleci/config.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
needs: test
if: github.ref_name == 'master'
environment:
name: release
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Run semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5f421aa

Please sign in to comment.