diff --git a/.github/scripts/publish-npm.sh b/.github/scripts/publish-npm.sh index 1be1320839a..9fa9f84385e 100644 --- a/.github/scripts/publish-npm.sh +++ b/.github/scripts/publish-npm.sh @@ -35,12 +35,11 @@ do echo "🔑 Authenticated with GITHUB" elif [[ $REGISTRY == 'NPM' ]]; then npm config set @db-ui:registry https://registry.npmjs.org/ - npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN" echo "🔑 Authenticated with NPM" else echo "Could not authenticate with $REGISTRY" exit 1 fi # https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow - npm publish --tag "$TAG" db-ui-core-"$VALID_SEMVER_VERSION".tgz --provenance + npm publish --tag "$TAG" db-ui-core-"$VALID_SEMVER_VERSION".tgz done diff --git a/.github/workflows/03-publish-packages.yml b/.github/workflows/03-publish-packages.yml index a34e00160d3..69714ba3953 100644 --- a/.github/workflows/03-publish-packages.yml +++ b/.github/workflows/03-publish-packages.yml @@ -50,7 +50,6 @@ jobs: PRE_RELEASE: ${{ inputs.preRelease }} VALID_SEMVER_VERSION: ${{ inputs.version }} GITHUB_COMMITISH: ${{ github.event.release.target_commitish }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: ⬆ Upload Package Artifact db-ui-core diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 783e03283ee..dc323b3f6ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,8 @@ jobs: uses: ./.github/workflows/03-publish-packages.yml needs: [lint, test, build, get-publish-version] secrets: inherit + permissions: + id-token: write # Required for OIDC with: release: ${{ needs.get-publish-version.outputs.release }} preRelease: ${{ needs.get-publish-version.outputs.preRelease }} diff --git a/.nvmrc b/.nvmrc index 2bd5a0a98a3..a45fd52cc58 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +24