Skip to content

Commit

Permalink
Merge pull request #257 from berendsliedrecht/ignore-npmrc-and-so-files
Browse files Browse the repository at this point in the history
do not write to .npmrc for release
  • Loading branch information
berendsliedrecht committed Oct 26, 2023
2 parents f0a7d2f + 6939c93 commit a3e5a86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: "https://registry.npmjs.org/"

- uses: pnpm/action-setup@v2
with:
Expand Down Expand Up @@ -239,20 +240,14 @@ jobs:
LIB_ANONCREDS_PATH: ../../
run: pnpm test

- name: Set NPM config
if: |
github.event_name == 'release' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish-wrappers == 'true')
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "always-auth=true" >> .npmrc
- name: Publish JavaScript Wrapper
if: |
github.event_name == 'release' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish-wrappers == 'true')
run: npx lerna publish from-package --no-push --no-private --yes --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


build-py:
name: Build Python
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ out
Cargo.lock
.DS_Store
.tmp
*.so
*.tgz

0 comments on commit a3e5a86

Please sign in to comment.