Skip to content

Commit 4ae751f

Browse files
committedOct 15, 2024
add: update workflows
1 parent 77be00a commit 4ae751f

File tree

6 files changed

+75
-161
lines changed

6 files changed

+75
-161
lines changed
 

‎.github/workflows/build.yml

-38
This file was deleted.

‎.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
fail-fast: false
20+
21+
steps:
22+
- id: checkout
23+
name: Checkout
24+
uses: actions/checkout@v3
25+
- id: setup-bun
26+
name: Setup Bun
27+
uses: oven-sh/setup-bun@v1
28+
with:
29+
bun-version: latest
30+
- id: install-deps
31+
name: Install dependencies
32+
run: |
33+
bun install
34+
- id: test
35+
name: Run test
36+
run: |
37+
bun test

‎.github/workflows/codeql-analysis.yml

-71
This file was deleted.

‎.github/workflows/lint.yml

-24
This file was deleted.

‎.github/workflows/node.js.yml

-28
This file was deleted.

‎.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: "20.x"
23+
registry-url: "https://registry.npmjs.org/"
24+
25+
- uses: oven-sh/setup-bun@v2
26+
with:
27+
bun-version: latest
28+
29+
- name: Install dependencies using Bun
30+
run: bun install
31+
32+
- name: Run build script using Bun
33+
run: bun run build
34+
35+
- name: Publish to npm
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)
Failed to load comments.