Skip to content

Commit f68e2c0

Browse files
committed
fix: Updated code for semantic-release.
fix: Added commander back. fix: Updated github actions. fix: migrated to .mjs file. fix: migrated to .mjs file. fix: updated release config. fix: updated release config. fix: Update release.config.mjs fix: updated release config. fix: updated release config. fix: Update build.yml
1 parent a1af54a commit f68e2c0

File tree

6 files changed

+1296
-94
lines changed

6 files changed

+1296
-94
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

44
name: Node.js CI
5-
5+
env:
6+
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
7+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
8+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
610
on:
711
push:
812
branches: [ "main" ]
@@ -31,3 +35,27 @@ jobs:
3135
- run: npm run build:cli
3236
- run: npm test
3337
- run: npm run lint
38+
39+
publish:
40+
runs-on: ubuntu-latest
41+
needs: build
42+
env:
43+
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
44+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
45+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Setup Node.js
50+
uses: actions/setup-node@v4
51+
with:
52+
node-version: 22.x
53+
registry-url: https://registry.npmjs.org/
54+
- name: Install Dependencies
55+
run: npm ci
56+
- name: Build dist
57+
run: npm run build
58+
- name: Build CLI
59+
run: npm run build:cli
60+
- name: Release to NPM
61+
run: npm run semantic-release

.github/workflows/release.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)