Skip to content

Commit

Permalink
ci: create npmrc (#1911)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Jun 20, 2024
1 parent 3239ef3 commit 34a5730
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changeset/fifty-bulldogs-taste.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@credo-ts/core": patch
'@credo-ts/core': patch
---

pex query fix
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 34a5730

Please sign in to comment.