Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: update auto version #25

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8fd0771
feat: test precommit
khoilen Jan 3, 2025
97fee20
fix: fix precommit
khoilen Jan 4, 2025
595952c
feat: remove un use extension
khoilen Jan 4, 2025
8b7757d
fix: smoke test precommit
khoilen Jan 4, 2025
083aefc
fix: smoke test precommit
khoilen Jan 4, 2025
73031ce
fix: update linting when commit
khoilen Jan 4, 2025
f8af79c
feat: updat lint-stage commit
khoilen Jan 4, 2025
4370305
feat: update eslint format
khoilen Jan 4, 2025
1eb0acf
feat: update eslint with pretiier
khoilen Jan 4, 2025
b8d9dc9
feat: update bracket between object
khoilen Jan 4, 2025
222018a
feat: fix eslint bracket
khoilen Jan 4, 2025
c5c3e8b
feat: remove semi
khoilen Jan 4, 2025
827df50
feat(release): add release auto fetch version
khoilen Jan 5, 2025
b7dbea4
style: update tag version from ci
khoilen Jan 5, 2025
c10d203
style: update package missing
khoilen Jan 5, 2025
d472a4e
Merge branch 'main' into beta
khoilen Jan 5, 2025
75ccf0e
style: remove .npmrc file
khoilen Jan 5, 2025
88425fa
style: update public yml file
khoilen Jan 6, 2025
0d2847c
style: update release workflow
khoilen Jan 6, 2025
369c007
style: change tail file releases
khoilen Jan 6, 2025
4f1059d
style: update release
khoilen Jan 6, 2025
4047b44
style: update release tail
khoilen Jan 6, 2025
83f77ee
feat: update config cjs
khoilen Jan 6, 2025
a3dea31
feat: update config release cjs
khoilen Jan 6, 2025
4380661
feat: update config release cjs
khoilen Jan 6, 2025
3d9fc1c
feat: add auto pump version
khoilen Jan 6, 2025
b92c964
feat (nt-sheet): update dump version
khoilen Jan 6, 2025
bfc85de
feat (nt-sheet): update dump version
khoilen Jan 6, 2025
3194505
feat (nt-sheet): update dump version
khoilen Jan 6, 2025
987bf13
feat (nt-sheet): update dump version
khoilen Jan 6, 2025
25fa1b2
style: resolve config
khoilen Jan 6, 2025
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
1 change: 0 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'

21 changes: 7 additions & 14 deletions .github/workflows/publish-nt-css.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 'Publish NT CSS Framework'

on:
release:
types: [created]
push:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -23,28 +24,20 @@ jobs:
- name: Install pnpm
run: npm install -g pnpm

- name: Set up PNPM_HOME and PATH
run: |
echo "PNPM_HOME=$HOME/.local/share/pnpm" >> $GITHUB_ENV
echo "PATH=$HOME/.local/share/pnpm:$PATH" >> $GITHUB_ENV
mkdir -p $HOME/.local/share/pnpm
export PNPM_HOME=$HOME/.local/share/pnpm
export PATH=$PNPM_HOME:$PATH

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile
working-directory: apps/nt-stylesheet

- name: Test CSS framework
run: pnpm run test
run: pnpm test
working-directory: apps/nt-stylesheet

- name: Build CSS framework
run: pnpm run build
run: pnpm build
working-directory: apps/nt-stylesheet

- name: Publish to npm
run: npx semantic-release
run: npx semantic-release-plus
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Snyk Security Check
on:
push:
pull_request:
push:
pull_request:

jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies with pnpm
run: pnpm install --no-frozen-lockfile
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies with pnpm
run: pnpm install --no-frozen-lockfile
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
19 changes: 9 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "always"
}
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.css": "tailwindcss",
"*.scss": "tailwindcss"
}
"editor.formatOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
14 changes: 7 additions & 7 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This document outlines security procedures and general policies for the `standard` project.

- [Security Policies and Procedures](#security-policies-and-procedures)
- [Reporting a Bug](#reporting-a-bug)
- [Disclosure Policy](#disclosure-policy)
- [Comments on this Policy](#comments-on-this-policy)
- [Security Policies and Procedures](#security-policies-and-procedures)
- [Reporting a Bug](#reporting-a-bug)
- [Disclosure Policy](#disclosure-policy)
- [Comments on this Policy](#comments-on-this-policy)

## Reporting a Bug

Expand All @@ -21,9 +21,9 @@ Report security bugs in third-party modules to the person or team maintaining th

When the security team receives a security bug report, they will assign it to a primary handler. This person will coordinate the fix and release process, involving the following steps:

* Confirm the problem and determine the affected versions.
* Audit code to find any potential similar problems.
* Prepare fixes for all releases still under maintenance. These fixes will be released as fast as possible to npm.
- Confirm the problem and determine the affected versions.
- Audit code to find any potential similar problems.
- Prepare fixes for all releases still under maintenance. These fixes will be released as fast as possible to npm.

## Comments on this Policy

Expand Down
1 change: 0 additions & 1 deletion apps/nt-stylesheet/.npmrc

This file was deleted.

Empty file added apps/nt-stylesheet/CHANGELOG.md
Empty file.
3 changes: 1 addition & 2 deletions apps/nt-stylesheet/bin/init-tailwind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node

import fs from 'fs'
import { exec } from 'child_process'
import fs from 'fs'
import readline from 'readline'

export const installPackage = (packageName) => {
Expand Down
9 changes: 5 additions & 4 deletions apps/nt-stylesheet/bin/init-tailwind.spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { describe, it, expect, vi } from 'vitest'
import fs from 'fs'
import { exec } from 'child_process'
import fs from 'fs'
import readline from 'readline'
import { describe, expect, it, vi } from 'vitest'

import {
installPackage,
createTailwindConfig,
createPostCSSConfig,
createTailwindConfig,
initialize,
installPackage,
} from './init-tailwind.js'

vi.mock('fs')
Expand Down
1 change: 0 additions & 1 deletion apps/nt-stylesheet/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './styles/styles.scss'

import ntTheme from './themes'

export default ntTheme
11 changes: 8 additions & 3 deletions apps/nt-stylesheet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"packageManager": "[email protected]",
"scripts": {
"build": "pnpm vite build",
"test": "npx vitest",
"semantic-release": "semantic-release"
"test": "npx vitest"
},
"bin": {
"@nashtech/nt-stylesheet": "bin/init-tailwind.js"
Expand Down Expand Up @@ -53,6 +52,12 @@
"tailwindcss": "^3.4.16"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com"
},
"repository": {
"type": "git",
"url": "https://github.com/nashtech-garage/nt-sketchbook.git",
"directory": "apps/nt-stylesheet"
}
}
Loading
Loading