From cd4b8da75e1a0c0aa3d7e6f76d6b560a4dea941f Mon Sep 17 00:00:00 2001 From: John McBride Date: Wed, 4 Sep 2024 15:55:53 -0600 Subject: [PATCH 1/2] fix: NPM cache now looks at package-lock file (#136) Signed-off-by: John McBride --- .github/workflows/release.yaml | 3 +- npm/.gitignore | 133 +++++++++++++++++++++++++++++++++ npm/package-lock.json | 17 +++++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 npm/.gitignore create mode 100644 npm/package-lock.json diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c728789..aa3e092 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,7 +40,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: 18 - cache: 'npm' + cache: "npm" + cache-dependency-path: "./npm/package-lock.json" - name: "🔧 install npm@latest" run: npm i -g npm@latest diff --git a/npm/.gitignore b/npm/.gitignore new file mode 100644 index 0000000..67d147d --- /dev/null +++ b/npm/.gitignore @@ -0,0 +1,133 @@ +# Runtime artifact from running "npm install" locally +bin/pizza + +# 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 +dist + +# 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 build output +.vuepress/dist + +# 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/npm/package-lock.json b/npm/package-lock.json new file mode 100644 index 0000000..09b29fb --- /dev/null +++ b/npm/package-lock.json @@ -0,0 +1,17 @@ +{ + "name": "pizza", + "version": "1.3.0-beta.2", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "pizza", + "version": "1.3.0-beta.2", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "pizza": "bin/runner.js" + } + } + } +} From 751a66712e92043a77e04531aaa7290bdf7d7568 Mon Sep 17 00:00:00 2001 From: John McBride Date: Wed, 4 Sep 2024 21:56:32 +0000 Subject: [PATCH 2/2] chore(patch): release 1.3.0-beta.3 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.3.0-beta.3](https://github.com/open-sauced/pizza-cli/compare/v1.3.0-beta.2...v1.3.0-beta.3) (2024-09-04) ### 🐛 Bug Fixes * NPM cache now looks at package-lock file ([#136](https://github.com/open-sauced/pizza-cli/issues/136)) ([cd4b8da](https://github.com/open-sauced/pizza-cli/commit/cd4b8da75e1a0c0aa3d7e6f76d6b560a4dea941f)) --- CHANGELOG.md | 7 +++++++ npm/package-lock.json | 4 ++-- npm/package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68eec46..1d99ced 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ > All notable changes to this project will be documented in this file +## [1.3.0-beta.3](https://github.com/open-sauced/pizza-cli/compare/v1.3.0-beta.2...v1.3.0-beta.3) (2024-09-04) + + +### 🐛 Bug Fixes + +* NPM cache now looks at package-lock file ([#136](https://github.com/open-sauced/pizza-cli/issues/136)) ([cd4b8da](https://github.com/open-sauced/pizza-cli/commit/cd4b8da75e1a0c0aa3d7e6f76d6b560a4dea941f)) + ## [1.3.0-beta.2](https://github.com/open-sauced/pizza-cli/compare/v1.3.0-beta.1...v1.3.0-beta.2) (2024-09-04) diff --git a/npm/package-lock.json b/npm/package-lock.json index 09b29fb..3d7cc4e 100644 --- a/npm/package-lock.json +++ b/npm/package-lock.json @@ -1,12 +1,12 @@ { "name": "pizza", - "version": "1.3.0-beta.2", + "version": "1.3.0-beta.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pizza", - "version": "1.3.0-beta.2", + "version": "1.3.0-beta.3", "hasInstallScript": true, "license": "MIT", "bin": { diff --git a/npm/package.json b/npm/package.json index f691001..5d99474 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,6 +1,6 @@ { "name": "pizza", - "version": "1.3.0-beta.2", + "version": "1.3.0-beta.3", "description": "A command line utility for insights, metrics, and all things OpenSauced", "repository": "https://github.com/open-sauced/pizza-cli", "license": "MIT",