Skip to content
Merged
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
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "nodesecure/cli" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
48 changes: 48 additions & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Changesets
on:
push:
branches:
- master
env:
CI: true

jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC publishing
contents: write # Required for changesets to push version commit
pull-requests: write # Required for changesets to create PRs
steps:
- name: Checkout code repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Setup node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'

- name: Install latest npm
run: npm install -g npm@latest

- name: Install dependencies
run: npm install --ignore-scripts

- name: Build monorepo
run: npm run build

- name: Update and publish versions
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
version: npm run ci:version
commit: "chore: update versions"
title: "chore: update versions"
publish: npm run ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ""
NPM_CONFIG_PROVENANCE: true
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"test:cli": "node --no-warnings --test test/**/*.test.js",
"test:all": "npm run test --ws --if-present",
"coverage": "c8 --reporter=lcov npm run test",
"ci:publish": "changeset publish",
"ci:version": "changeset version",
"clean": "clear-ts-build"
},
"files": [
Expand Down Expand Up @@ -69,6 +71,8 @@
},
"homepage": "https://github.com/NodeSecure/cli#readme",
"devDependencies": {
"@changesets/changelog-github": "0.6.0",
"@changesets/cli": "2.30.0",
"@nodesecure/size-satisfies": "^1.1.0",
"@nodesecure/vis-network": "^1.4.0",
"@openally/config.eslint": "^2.4.2",
Expand Down
10 changes: 10 additions & 0 deletions workspaces/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
"test": "node --test test/**.test.ts",
"test:c8": "c8 npm run test"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/NodeSecure/cli",
"directory": "workspaces/cache"
},
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
"license": "MIT",
"dependencies": {
Expand Down
10 changes: 10 additions & 0 deletions workspaces/documentation-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
"example": "npm run example:build && http-server ./dist",
"example:build": "node esbuild.config.js"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/NodeSecure/cli",
"directory": "workspaces/documentation-ui"
},
"files": [
"index.js",
"src"
Expand Down
10 changes: 10 additions & 0 deletions workspaces/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
"test": "node --test ./test/**/*.test.ts",
"test:c8": "c8 npm run test"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/NodeSecure/cli",
"directory": "workspaces/server"
},
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
"license": "MIT",
"devDependencies": {
Expand Down
8 changes: 7 additions & 1 deletion workspaces/size-satisfies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@
"test-only": "node --test test/test.js",
"test": "npm run lint && npm run test-only"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/NodeSecure/cli.git"
"url": "https://github.com/NodeSecure/cli",
"directory": "workspaces/size-satisfies"
},
"files": [
"index.js",
Expand Down
10 changes: 10 additions & 0 deletions workspaces/vis-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
"start": "npm run build && http-server ./dist",
"build": "rimraf ./dist && node esbuild.config.js"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/NodeSecure/cli",
"directory": "workspaces/vis-network"
},
"files": [
"index.js",
"src"
Expand Down
Loading