fix config for publication

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-01-22 22:50:08 +01:00
parent c8aae7be2d
commit 3d197dfdf1
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
4 changed files with 22 additions and 18 deletions

4
.gitignore vendored
View File

@ -89,7 +89,3 @@ typings/
# DynamoDB Local files # DynamoDB Local files
.dynamodb/ .dynamodb/
# Temp files for publication
/src/package.json
/src/README.md

View File

@ -11,5 +11,4 @@ all:
publish: publish:
yarn install yarn install
yarn build yarn build
yarn run copy yarn publish --no-git-tag-version --new-version $(PUBLISH_VERSION)
cd src && yarn publish --no-git-tag-version --access public --new-version $(PUBLISH_VERSION)

View File

@ -1,32 +1,38 @@
{ {
"name": "@docker/actions-toolkit", "name": "@docker/actions-toolkit",
"description": "Toolkit for Docker (GitHub) Actions", "description": "Toolkit for Docker (GitHub) Actions",
"main": "index.js",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"lint": "eslint src/**/*.ts __tests__/**/*.ts", "lint": "eslint src/**/*.ts __tests__/**/*.ts",
"format": "eslint --fix src/**/*.ts __tests__/**/*.ts", "format": "eslint --fix src/**/*.ts __tests__/**/*.ts",
"test": "jest --coverage", "test": "jest --coverage"
"copy": "cpy package.json README.md src"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/docker/actions-toolkit.git" "url": "git+https://github.com/docker/actions-toolkit.git"
}, },
"keywords": [ "keywords": [
"github",
"actions", "actions",
"docker", "docker",
"build", "build",
"push" "buildx",
"buildkit"
], ],
"author": "Docker Inc.", "author": "Docker Inc.",
"contributors": [
{
"name": "CrazyMax",
"url": "https://crazymax.dev"
}
],
"license": "Apache-2.0", "license": "Apache-2.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib"
],
"publishConfig": {
"access": "public"
},
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1", "@actions/exec": "^1.1.1",

View File

@ -1,18 +1,21 @@
{ {
"compilerOptions": { "compilerOptions": {
"esModuleInterop": true,
"target": "es6", "target": "es6",
"module": "commonjs", "module": "commonjs",
"strict": true,
"declaration": true,
"sourceMap": true,
"newLine": "lf", "newLine": "lf",
"outDir": "./lib", "outDir": "./lib",
"rootDir": "./src", "rootDir": "./src",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitAny": false, "noImplicitAny": false,
"resolveJsonModule": true, "resolveJsonModule": true,
"useUnknownInCatchVariables": false, "useUnknownInCatchVariables": false,
}, },
"exclude": [ "exclude": [
"./lib/**/*",
"node_modules", "node_modules",
"**/*.test.ts", "**/*.test.ts",
"jest.config.ts" "jest.config.ts"