From 01fcdd190710cdaa087eb086fe45e8bb8d03bde6 Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Wed, 18 Mar 2026 16:03:12 +0100 Subject: [PATCH] Update package version to 2.0.0 and add CI/CD workflow for automated builds and publishing --- .github/workflows/publish.yml | 54 +++++++++++++++++++++++++++++++++++ package.json | 5 +++- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7c6da42 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,54 @@ +name: CI / CD + +on: + push: + branches: + - '**' + pull_request: + branches: + - main + +jobs: + build: + name: Test Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 10 + + - uses: actions/setup-node@v4 + with: + node-version: '24' + cache: 'pnpm' + + - run: pnpm install --frozen-lockfile + - run: pnpm build + + publish: + name: Publish to NPM + needs: build + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 10 + + - uses: actions/setup-node@v4 + with: + node-version: '24' + registry-url: 'https://registry.npmjs.org' + cache: 'pnpm' + + - run: pnpm install --frozen-lockfile + - run: pnpm build + + - run: pnpm publish --no-git-checks + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + diff --git a/package.json b/package.json index df0cdd2..5cce5de 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "shsf-cli", - "version": "1.0.0", + "version": "2.0.0", "description": "", "type": "module", + "files": [ + "dist" + ], "bin": { "shsf": "./dist/index.js" },