From 2fc7aa1f487764f90a3702b0e37478f660f22800 Mon Sep 17 00:00:00 2001 From: frank zhu Date: Wed, 21 Feb 2024 15:42:58 -0800 Subject: [PATCH] fix: changeset bugs (#40) * init changeset * add .npmrc * update pnpm.lock * add private * fix repo name * add private: true to median package * add grafana inputs and uncomment other code * add grafana secrets and update ci-lint-go version --- .changeset/README.md | 8 ++++++++ .changeset/config.json | 20 ++++++++++++++++++++ .github/workflows/push-master.yml | 7 +++++-- .npmrc | 2 ++ median/package.json | 1 + package.json | 1 + pnpm-lock.yaml | 2 +- 7 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .changeset/README.md create mode 100644 .changeset/config.json create mode 100644 .npmrc diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 0000000..e5b6d8d --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..b31f1b8 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", + "changelog": [ + "@changesets/changelog-github", + { + "repo": "smartcontractkit/chainlink-feeds" + } + ], + "privatePackages": { + "version": true, + "tag": true + }, + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 11ee3fb..0c450e4 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -30,7 +30,6 @@ jobs: shell: bash env: PACKAGES: ${{ env.PACKAGES }} - # Convert "producer,reports_consumer" to "./producer/... ./reports_consumer/..." run: echo "lint_args_packages=$(echo "./$(echo $PACKAGES | sed 's/,/\/... .\//g;s/$/\/.../')")" | tee -a "${GITHUB_OUTPUT}" ci-lint: @@ -41,7 +40,7 @@ jobs: actions: read steps: - name: ci-lint - uses: smartcontractkit/.github/actions/ci-lint-go@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # ci-lint-go@0.1.0 + uses: smartcontractkit/.github/actions/ci-lint-go@f94f14f46f7b3c51c49bffbea420edd2f01134dc # ci-lint-go@0.2.0 with: # grafana inputs metrics-job-name: ci-lint @@ -120,6 +119,10 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_FEEDS_CI_CHANGESET_TOKEN_ISSUER_ROLE_ARN }} aws-lambda-url: ${{ secrets.AWS_FOUNDATIONS_GATI_URL }} + # grafana inputs + metrics-job-name: cd-release + gc-basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} + gc-host: ${{ secrets.GRAFANA_CLOUD_HOST }} cicd-build-publish-artifacts-release: # Call push-tag-release for median@7.7.7 diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..f84c6d7 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +auto-install-peers=true +exclude-links-from-lockfile=true diff --git a/median/package.json b/median/package.json index 9e58af4..76e0f81 100644 --- a/median/package.json +++ b/median/package.json @@ -2,6 +2,7 @@ "name": "median", "version": "0.1.0", "description": "", + "private": true, "main": "index.js", "author": "", "license": "UNLICENSED" diff --git a/package.json b/package.json index 9e9143f..852ce30 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "chainlink-feeds", "version": "0.1.0", "description": "Chainlink feeds plugins", + "private": true, "main": "index.js", "scripts": { "ci:changeset:publish": "pnpm changeset publish", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14aa35e..9917563 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2,7 +2,7 @@ lockfileVersion: '6.0' settings: autoInstallPeers: true - excludeLinksFromLockfile: false + excludeLinksFromLockfile: true importers: