From d4fd6e811ff1e4a759bd9634ec7aef6be97a24ca Mon Sep 17 00:00:00 2001 From: Ankur Banerjee Date: Fri, 17 Mar 2023 13:01:08 +0000 Subject: [PATCH 1/2] build: Update build workflows to staging (#179) * Update package-lock.json * Update workflows --- .github/dependabot.yml | 2 + .github/workflows/cleanup-actions.yml | 4 +- .github/workflows/cleanup-cache-manual.yml | 2 +- .github/workflows/deploy.yml | 1 - .npmignore | 147 --------------------- package-lock.json | 4 +- package.json | 10 +- 7 files changed, 15 insertions(+), 155 deletions(-) delete mode 100644 .npmignore diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 42b425a8..212be2ac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,12 +13,14 @@ updates: # Maintain dependencies for NPM - package-ecosystem: "npm" + target-branch: "develop" directory: "/" schedule: interval: "weekly" # Maintain dependencies for Docker - package-ecosystem: "docker" + target-branch: "develop" directory: "/" schedule: interval: "weekly" diff --git a/.github/workflows/cleanup-actions.yml b/.github/workflows/cleanup-actions.yml index ad82df31..160fc24f 100644 --- a/.github/workflows/cleanup-actions.yml +++ b/.github/workflows/cleanup-actions.yml @@ -6,12 +6,12 @@ on: description: 'Retain days' required: true type: string - default: 30 + default: "30" minimum_runs: description: 'Minimum runs to keep for each workflow' required: true type: string - default: 0 + default: "0" delete_workflow_pattern: description: 'Name/filename of workflow. Default is all.' required: false diff --git a/.github/workflows/cleanup-cache-manual.yml b/.github/workflows/cleanup-cache-manual.yml index 9cd100e2..8c5e9348 100644 --- a/.github/workflows/cleanup-cache-manual.yml +++ b/.github/workflows/cleanup-cache-manual.yml @@ -16,6 +16,6 @@ jobs: steps: - name: "Wipe Github Actions cache" - uses: easimon/wipe-cache@v1 + uses: easimon/wipe-cache@v2 with: dry-run: ${{ github.event.inputs.dry-run }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f1590a09..0a30e46d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,6 @@ jobs: deploy-staging: name: "Staging Deploy" runs-on: ubuntu-latest - continue-on-error: true env: IMAGE_NAME: registry.digitalocean.com/${{ github.repository }} environment: diff --git a/.npmignore b/.npmignore deleted file mode 100644 index d3b56648..00000000 --- a/.npmignore +++ /dev/null @@ -1,147 +0,0 @@ -### APP-SPECIFIC EXCLUSIONS ### - -# Directories to exclude from NPM package -.github/** -src/** -test/** - -# Files to exclude from NPM package -.gitignore -.dockerignore -.npmrc -.releaserc.json -Dockerfile -jest* -tsconfig.* -webpack.* -!README.md -**.md - -### GENERAL EXCLUSIONS ### - -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress v2.x temp and cache directory -.temp -.cache - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* diff --git a/package-lock.json b/package-lock.json index dc4d6842..3c259ec0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cheqd/credential-service", - "version": "1.5.0-develop.2", + "version": "1.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@cheqd/credential-service", - "version": "1.5.0-develop.2", + "version": "1.5.0", "license": "Apache-2.0", "dependencies": { "@cheqd/did-provider-cheqd": "^3.0.4", diff --git a/package.json b/package.json index d89678a7..de166c93 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,12 @@ "version": "1.5.0", "description": "cheqd Credential Service Backend", "source": "src/index.ts", - "main": "dist/worker.js", + "main": "dist/index.js", "license": "Apache-2.0", "author": "Cheqd Foundation Limited (https://github.com/cheqd)", "repository": "https://github.com/cheqd/credential-service.git", "scripts": { - "build": "esbuild src/index.ts --platform=node --bundle --minify --outdir=dist ", + "build": "esbuild src/index.ts --platform=node --bundle --minify --outdir=dist", "start": "node dist/index.js", "format": "prettier --write '*.{json,js}' 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'", "lint": "eslint --max-warnings=0 src && prettier --check '*.{json,js}' 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'", @@ -22,6 +22,12 @@ "prettier" ] }, + "files": [ + "dist/**/*", + "LICENSE", + "package.json", + "README.md" + ], "dependencies": { "@cheqd/did-provider-cheqd": "^3.0.4", "@veramo/core": "^5.1.2", From c9db4eb5c2a98728d8101f5bda58543406c8435b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 17 Mar 2023 13:06:29 +0000 Subject: [PATCH 2/2] chore(release): 1.5.1-develop.1 [skip ci] ## [1.5.1-develop.1](https://github.com/cheqd/credential-service/compare/1.5.0...1.5.1-develop.1) (2023-03-17) --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bce9e9cc..75b872fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [1.5.1-develop.1](https://github.com/cheqd/credential-service/compare/1.5.0...1.5.1-develop.1) (2023-03-17) + ## [1.5.0](https://github.com/cheqd/credential-service/compare/1.4.4...1.5.0) (2023-03-17) diff --git a/package.json b/package.json index de166c93..a6af01a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cheqd/credential-service", - "version": "1.5.0", + "version": "1.5.1-develop.1", "description": "cheqd Credential Service Backend", "source": "src/index.ts", "main": "dist/index.js",