diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 4c6a9f867..69218c81f 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -46,7 +46,7 @@ jobs: node-version-file: '.nvmrc' - name: Install dependencies - run: npm ci + run: npm ci --ignore-scripts # This prevent lerna command from throwing this error: # "Working tree has uncommitted changes, please commit or remove the following changes before continuing" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c79538592..e1bfc1dec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,21 +57,13 @@ jobs: node-version-file: '.nvmrc' - name: Install dependencies - run: npm ci - - # This prevent lerna command from throwing this error: - # "Working tree has uncommitted changes, please commit or remove the following changes before continuing" - - name: Ignore git uncommitted changes - run: | - git update-index --skip-worktree .npmrc - + run: npm ci --ignore-scripts + - name: Publish the release env: DRY_RUN: "${{ inputs.dry-run }}" GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - npm run ci:release + run: npm run ci:release # The permissions configuration for this can be found at # https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/apm-agent-rum-js/02-gcp-oidc-elastic-cdn.tf diff --git a/packages/rum-angular/package.json b/packages/rum-angular/package.json index fc0b655af..3a24ea00d 100644 --- a/packages/rum-angular/package.json +++ b/packages/rum-angular/package.json @@ -6,7 +6,8 @@ "license": "MIT", "publishConfig": { "access": "public", - "directory": "dist" + "directory": "dist", + "provenance": true }, "repository": { "type": "git", diff --git a/packages/rum-core/package.json b/packages/rum-core/package.json index 6150558ed..d1feb9868 100644 --- a/packages/rum-core/package.json +++ b/packages/rum-core/package.json @@ -8,7 +8,8 @@ "source": "src/index.js", "sideEffects": false, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "type": "git", diff --git a/packages/rum-react/package.json b/packages/rum-react/package.json index 3583a2217..f39d50e7f 100644 --- a/packages/rum-react/package.json +++ b/packages/rum-react/package.json @@ -16,7 +16,8 @@ "node": ">=8.0.0" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "type": "git", diff --git a/packages/rum-vue/package.json b/packages/rum-vue/package.json index 271d34c4c..529efca76 100644 --- a/packages/rum-vue/package.json +++ b/packages/rum-vue/package.json @@ -34,7 +34,8 @@ "script": "node ../../dev-utils/run-script.js" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "repository": { "type": "git", diff --git a/packages/rum/package.json b/packages/rum/package.json index 77536a4c4..d750ebee2 100644 --- a/packages/rum/package.json +++ b/packages/rum/package.json @@ -12,7 +12,8 @@ "directory": "packages/rum" }, "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "scripts": { "prepublishOnly": "npm run build",