Skip to content

Commit ab3ca0d

Browse files
Migrate to GHA
1 parent e7de06e commit ab3ca0d

2 files changed

Lines changed: 54 additions & 121 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v6
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: '20'
22+
cache: 'yarn'
23+
24+
- name: Install dependencies
25+
run: yarn install --frozen-lockfile
26+
27+
- name: Run Tests
28+
run: yarn test
29+
30+
publish:
31+
if: startsWith(github.ref, 'refs/tags/v')
32+
runs-on: ubuntu-latest
33+
permissions:
34+
id-token: write
35+
contents: read
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v6
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v6
42+
with:
43+
node-version: '20'
44+
cache: 'yarn'
45+
registry-url: 'https://registry.npmjs.org'
46+
47+
- name: Install dependencies
48+
run: yarn install --frozen-lockfile
49+
50+
- name: Build
51+
run: yarn build
52+
53+
- name: Publish package
54+
run: npm publish --access public

0 commit comments

Comments
 (0)