mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 14:19:58 +00:00
make all packages private (#5339)
* make all packages private * remove lerna json and publish scripts * clean up npmignores * remove major npm github ci logic
This commit is contained in:
parent
9f624deae0
commit
2bdd84ad22
7
.github/workflows/release-publish.yml
vendored
7
.github/workflows/release-publish.yml
vendored
@ -136,13 +136,6 @@ jobs:
|
||||
snap: artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.snap
|
||||
release: stable
|
||||
|
||||
- name: Publish npm packages
|
||||
run: |
|
||||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
||||
npm run publish -- --pre-dist-tag ${{ contains(github.event.inputs.version, 'alpha') && 'alpha' || 'beta' }} --yes
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Upload .deb to pulp (stable only)
|
||||
if: ${{ env.IS_PRERELEASE == 'false' }}
|
||||
uses: docker://kong/release-script:latest
|
||||
|
9
.github/workflows/release-start.yml
vendored
9
.github/workflows/release-start.yml
vendored
@ -18,11 +18,6 @@ on:
|
||||
required: false
|
||||
description: iteration of the release, used for non-stable releases (version-channel.iteration) (e.g. 0, 1, 2, 3 ...)
|
||||
default: '0'
|
||||
major-npm:
|
||||
required: false
|
||||
type: boolean
|
||||
description: increment the major version of the NPM packages
|
||||
default: false
|
||||
|
||||
env:
|
||||
RELEASE_VERSION: ${{ github.event.inputs.version }}${{ github.event.inputs.channel != 'stable' && format('-{0}.{1}', github.event.inputs.channel, github.event.inputs.iteration) || '' }}
|
||||
@ -61,11 +56,11 @@ jobs:
|
||||
|
||||
- name: Lerna version (stable)
|
||||
if: github.event.inputs.channel == 'stable'
|
||||
run: npm run version -- --yes "${{ github.event.inputs.major-npm != 'true' && 'minor' || 'major' }}"
|
||||
run: npm run version -- --yes 'minor'
|
||||
|
||||
- name: Lerna version (alpha/beta)
|
||||
if: github.event.inputs.channel != 'stable'
|
||||
run: npm run version -- --yes --preid "${{ github.event.inputs.channel }}" "${{ github.event.inputs.iteration == '0' && (github.event.inputs.major-npm != 'true' && 'preminor' || 'premajor') || 'prerelease' }}"
|
||||
run: npm run version -- --yes --preid "${{ github.event.inputs.channel }}" "${{ github.event.inputs.iteration == '0' && 'preminor' || 'prerelease' }}"
|
||||
|
||||
- name: Config version
|
||||
run: APP_VERSION="${{ env.RELEASE_VERSION }}" npm run app-bump-version
|
||||
|
14
lerna.json
14
lerna.json
@ -1,19 +1,7 @@
|
||||
{
|
||||
"version": "3.6.1-beta.2",
|
||||
"includeMergedTags": true,
|
||||
"packages": [
|
||||
"packages/*",
|
||||
"plugins/*"
|
||||
],
|
||||
"command": {
|
||||
"version": {
|
||||
"exact": true,
|
||||
"forcePublish": true,
|
||||
"gitTagVersion": false,
|
||||
"push": false
|
||||
},
|
||||
"publish": {
|
||||
"verifyAccess": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
"lint:fix": "lerna run lint:fix --stream --no-bail",
|
||||
"bootstrap": "npm install && lerna bootstrap && lerna run --stream bootstrap",
|
||||
"version": "lerna version",
|
||||
"publish": "lerna publish from-package",
|
||||
"clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules **/*.tsbuildinfo",
|
||||
"test": "lerna run --stream --parallel test",
|
||||
"inso-start": "npm start --prefix packages/insomnia-inso",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-common",
|
||||
"version": "3.6.1-beta.2",
|
||||
"homepage": "https://insomnia.rest",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-config",
|
||||
"version": "3.6.1-beta.2",
|
||||
"homepage": "https://insomnia.rest",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-cookies",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "insomnia-importers",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Ignore everything by default
|
||||
# NOTE: NPM publish will never ignore package.json, package-lock.json, README, LICENSE, CHANGELOG
|
||||
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
|
||||
*
|
||||
|
||||
# Don't ignore dist folder
|
||||
!dist/**
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "insomnia-inso",
|
||||
"version": "3.6.1-beta.2",
|
||||
"homepage": "https://insomnia.rest",
|
||||
@ -38,8 +39,7 @@
|
||||
"package": "esr src/scripts/pkg.ts",
|
||||
"pkg": "pkg .",
|
||||
"postpackage": "esr src/scripts/verify-pkg.ts",
|
||||
"artifacts": "esr src/scripts/artifacts.ts",
|
||||
"prepublishOnly": "npm run build:production"
|
||||
"artifacts": "esr src/scripts/artifacts.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/globals": "^28.1.0",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-prettify",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-send-request",
|
||||
"license": "Apache-2.0",
|
||||
"version": "3.6.1-beta.2",
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Ignore everything by default
|
||||
# NOTE: NPM publish will never ignore package.json, package-lock.json, README, LICENSE, CHANGELOG
|
||||
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
|
||||
*
|
||||
|
||||
# Don't ignore dist folder
|
||||
!dist/**
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-testing",
|
||||
"license": "Apache-2.0",
|
||||
"version": "3.6.1-beta.2",
|
||||
@ -22,8 +22,7 @@
|
||||
"postclean": "rimraf dist",
|
||||
"test": "jest",
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"watch": "npm run build -- --watch",
|
||||
"prepublish": "npm run build"
|
||||
"watch": "npm run build -- --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/globals": "^28.1.0",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-url",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-xpath",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Ignore everything by default
|
||||
# NOTE: NPM publish will never ignore package.json, package-lock.json, README, LICENSE, CHANGELOG
|
||||
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
|
||||
*
|
||||
|
||||
# Don't ignore dist folder
|
||||
!dist/**
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "openapi-2-kong",
|
||||
"license": "Apache-2.0",
|
||||
"version": "3.6.1-beta.2",
|
||||
@ -12,8 +13,7 @@
|
||||
"clean": "tsc --build tsconfig.build.json --clean",
|
||||
"postclean": "rimraf dist",
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"test": "jest",
|
||||
"prepublish": "npm run build"
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"openapi-types": "^8.0.0",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-base64",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-cookie-jar",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-core-themes",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-default-headers",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-file",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-hash",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-jsonpath",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Ignore everything by default
|
||||
# NOTE: NPM publish will never ignore package.json, package-lock.json, README, LICENSE, CHANGELOG
|
||||
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
|
||||
*
|
||||
|
||||
# Don't ignore dist folder
|
||||
!dist/**
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-now",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-os",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-prompt",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-request",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-response",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"private": false,
|
||||
"private": true,
|
||||
"name": "insomnia-plugin-uuid",
|
||||
"version": "3.6.1-beta.2",
|
||||
"author": "Kong <office@konghq.com>",
|
||||
|
Loading…
Reference in New Issue
Block a user