Skip to content

Commit

Permalink
ci: add CI for publishing articats package
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 10, 2024
1 parent 861ca34 commit 4e646ca
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,42 @@ jobs:
name: minijson-${{ runner.os }}-${{ runner.arch }}
path: ./dist

merge-artifacts:
Release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
delete-merged: true

- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
name: merged-artifacts
path: dist/

- name: Prepare
run: |
chmod +x ./dist/*/minijson
zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe
tar -czf ./dist/minijson-macos-x64.tar.gz -C ./dist/darwin-x64 minijson
tar -czf ./dist/minijson-macos-arm64.tar.gz -C ./dist/darwin-arm64 minijson
tar -czf ./dist/minijson-linux-x64.tar.gz -C ./dist/linux-x64 minijson
- name: Draft the release
if: startsWith(github.ref, 'refs/tags/')
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
gzip: folders
draft: true
files: >
dist/minijson-windows-x64.zip
dist/minijson-macos-x64.tar.gz
dist/minijson-macos-arm64.tar.gz
dist/minijson-linux-x64.tar.gz
- name: Publish to npm
if: startsWith(github.ref, 'refs/tags/')
run: pnpm publish --access public
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# minijson

Minify JSON files **blazing fast**! Supports Comments. Uses D, C, and AVX2 and SSE4_1 SIMD.
Minify JSON files blazing fast, removing comments/whitespace.

4180 times faster than jsonminify!
Uses D, C, and AVX2 and SSE4_1 SIMD. 4180 times faster than jsonminify!

[![CI](https://github.com/aminya/minijson/actions/workflows/CI.yml/badge.svg)](https://github.com/aminya/minijson/actions/workflows/CI.yml)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aminya/minijson",
"version": "1.0.3",
"description": "Minify JSON files blazing fast! Supports Comments. Uses D, C, and AVX2 and SSE4_1 SIMD",
"description": "Minify JSON files blazing fast, removing comments/whitespace.",
"homepage": "https://github.com/aminya/minijson",
"license": "MIT",
"author": "Amin Yahyaabdi",
Expand Down

0 comments on commit 4e646ca

Please sign in to comment.