From a3aa29efd617eb88e79a46d78060666ecfeec875 Mon Sep 17 00:00:00 2001 From: Krister Johansson Date: Thu, 18 Apr 2024 22:40:19 +0200 Subject: [PATCH 1/3] chore: add .npmrc file to repository --- .npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5660f81 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org/ \ No newline at end of file From 5971d1579b86f1535af9359c82379053a70b5f08 Mon Sep 17 00:00:00 2001 From: Krister Johansson Date: Thu, 18 Apr 2024 22:40:26 +0200 Subject: [PATCH 2/3] chore: update npm-publish.yml to use latest version of release-please-action and actions/checkout@v4 --- .github/workflows/npm-publish.yml | 35 ------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100644 index 3dcef44..0000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Publish to NPM - -on: - push: - branches: - - main -permissions: - contents: write - pull-requests: write - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v4 - id: release - with: - token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} - release-type: node - # The logic below handles the npm publication: - - uses: actions/checkout@v4 - # these if statements ensure that a publication only occurs when - # a new release is created: - if: ${{ steps.release.outputs.release_created }} - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: 'https://registry.npmjs.org' - if: ${{ steps.release.outputs.release_created }} - - run: npm ci - if: ${{ steps.release.outputs.release_created }} - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - if: ${{ steps.release.outputs.release_created }} \ No newline at end of file From 242371cb82c39d5dd47d4c49623fd4c93d92be9e Mon Sep 17 00:00:00 2001 From: Krister Johansson Date: Thu, 18 Apr 2024 22:42:22 +0200 Subject: [PATCH 3/3] chore: bump version to 1.2.5 in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ad3b31..5273a05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gqlprune", - "version": "1.2.4", + "version": "1.2.5", "description": "This script helps identify unused GraphQL operations (queries, mutations, subscriptions) in your project. It scans .gql files for operations and checks if they are being used in your TypeScript/JavaScript files.", "bin": { "gqlPrune": "./dist/cli.js"