From 34a573027b38325c8454fc21b0ce946ea32eb88d Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Thu, 20 Jun 2024 21:32:57 +0200 Subject: [PATCH] ci: create npmrc (#1911) Signed-off-by: Timo Glastra --- .changeset/fifty-bulldogs-taste.md | 2 +- .github/workflows/release.yml | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.changeset/fifty-bulldogs-taste.md b/.changeset/fifty-bulldogs-taste.md index 91eaf4c7a8..e11da29615 100644 --- a/.changeset/fifty-bulldogs-taste.md +++ b/.changeset/fifty-bulldogs-taste.md @@ -1,5 +1,5 @@ --- -"@credo-ts/core": patch +'@credo-ts/core': patch --- pex query fix diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88c94d4706..d0bfe932f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,12 +40,20 @@ jobs: with: # This expects you to have a script called release which does a build for your packages and calls changeset publish publish: pnpm release - commit: 'chore(release): ' - title: 'chore(release): ' + commit: 'chore(release): new version' + title: 'chore(release): new version' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_PUBLISH }} + - name: Creating .npmrc + run: | + cat << EOF > ".npmrc" + //registry.npmjs.org/:_authToken=$NPM_TOKEN + EOF + env: + NPM_TOKEN: ${{ secrets.NPM_PUBLISH }} + - name: Create unstable release if: github.ref != 'refs/heads/main' || steps.changesets.outputs.published == 'false' run: |