From 0bf7d7ba1512502203c3107ad0afedcc93a8f204 Mon Sep 17 00:00:00 2001 From: Boris Jankovic Date: Thu, 13 Oct 2022 15:14:27 +0200 Subject: [PATCH 1/2] Changes --- .github/workflows/release.yml | 12 +++++++----- docs/releases.md | 2 +- packages/tenderly-core/README.md | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a70e77da..744349b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,7 @@ jobs: release: name: Release runs-on: ubuntu-latest + if: github.repository == 'Tenderly/hardhat-tenderly' steps: - name: Checkout Repo uses: actions/checkout@v2 @@ -19,10 +20,10 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies run: yarn @@ -30,10 +31,11 @@ jobs: # This enable Actions fatch all private packages if we have them NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Create Release Pull Request or Publish to npm - uses: changesets/action@master + - name: Create Release Pull Request or Publish to npm + uses: changesets/action@v1 with: + # This expects you to have a script called release which does a build for your packages and calls changeset publish publish: yarn run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Ensure to have this set up under GitHub secrets - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Ensure to have this set up under GitHub secrets \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Ensure to have this set up under GitHub secrets diff --git a/docs/releases.md b/docs/releases.md index 442e5d5e..920384d1 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -3,7 +3,7 @@ ## Prerelease > Warning! Prereleases are very complicated! Using them requires a thorough understanding of all parts of npm publishes. Mistakes can lead to repository and publish states that are very hard to fix.\ -> To fix that problem we use changeset and GitHub Actions. +> To fix that problem we use changeset and GitHub Actions. A prerelease workflow might look something like this: diff --git a/packages/tenderly-core/README.md b/packages/tenderly-core/README.md index 75df59e0..5896fdc4 100644 --- a/packages/tenderly-core/README.md +++ b/packages/tenderly-core/README.md @@ -1,3 +1,3 @@ # tenderly-core -Look for style guide in https://github.com/airbnb/javascript#airbnb-javascript-style-guide- +Tenderly core package. From 2ee02ca66f08f82dfecfeb645178c9f7958e5e16 Mon Sep 17 00:00:00 2001 From: Boris Jankovic Date: Thu, 13 Oct 2022 15:26:53 +0200 Subject: [PATCH 2/2] Fix tenderly-hardhat tsconfig --- packages/tenderly-hardhat/package.json | 1 + packages/tenderly-hardhat/tsconfig.json | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/tenderly-hardhat/package.json b/packages/tenderly-hardhat/package.json index a3f9f625..d959f08e 100644 --- a/packages/tenderly-hardhat/package.json +++ b/packages/tenderly-hardhat/package.json @@ -20,6 +20,7 @@ ], "files": [ "dist/", + "src/", "LICENSE", "README.md" ], diff --git a/packages/tenderly-hardhat/tsconfig.json b/packages/tenderly-hardhat/tsconfig.json index a0520d7d..1e4f3511 100644 --- a/packages/tenderly-hardhat/tsconfig.json +++ b/packages/tenderly-hardhat/tsconfig.json @@ -1,11 +1,9 @@ { "extends": "../../config/typescript/tsconfig.json", "compilerOptions": { - "outDir": "./dist", - "rootDirs": ["./src", "./test"] + "outDir": "./dist" }, - "exclude": ["./node_modules"], - "include": ["./test", "./src"], + "exclude": ["./dist", "./node_modules"], "references": [ { "path": "../tenderly-core/src"