Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org/'

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v3.2.1

Expand All @@ -31,19 +37,24 @@ jobs:
useConfigFile: true
configFilePath: GitVersion.yml

- name: Install NPM Packages
shell: pwsh
run: npm i
- name: Install dependencies
run: npm ci

- name: Build Project
shell: pwsh
run: npm run build

- name: Publish to NPM
if: startsWith(github.ref, 'refs/tags/')
shell: pwsh
- name: Set version
run: npm version ${{ steps.gitversion.outputs.fullSemVer }} --no-git-tag-version

- name: Configure npm authentication
run: |
npm version ${{ steps.gitversion.outputs.fullSemVer }} --no-git-tag-version
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "@mikeleg:registry=https://registry.npmjs.org/" >> ~/.npmrc

- name: Publish to NPM (tag)
if: github.ref_type == 'tag'
run: npm publish --access public

- name: Publish to NPM (prerelease)
if: github.ref_type != 'tag'
run: npm publish --access public --tag prerelease
Binary file modified logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
{
"name": "@mikeleg/flexsaber",
"scripts": {
"build": "vite build"
},
"dependencies": {
"vite": "^6.3.5"
}
},
"publishConfig": {
"access": "public"
},
"description": "Flexsaber is a declarative Web Components library for building flexible layouts using Flexbox. Designed to work in plain HTML, frontend frameworks, or no-code environments. Precise, modular, and powerful like a lightsaber.\",",
"repository": {
"type": "git",
"url": "git+https://github.com/mikeleg/flexsaber.git"
},
"keywords": [
"html",
"frontend",
"web-components",
"flexbox",
"ui-library"
],
"author": "<mikeleg> (https://github.com/mikeleg)",
"contributors": [
{
"name": "davide-pi",
"url": "https://github.com/davide-pi"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/mikeleg/flexsaber/issues"
},
"homepage": "https://github.com/mikeleg/flexsaber#readme"
}
Loading