Skip to content

Commit

Permalink
inline token injection
Browse files Browse the repository at this point in the history
  • Loading branch information
b-cooper committed Dec 4, 2023
1 parent 547f414 commit 14a3340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/components-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ jobs:
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: 'install udev for usb-detection'
run: sudo apt-get update && sudo apt-get install libudev-dev
- name: 'cache yarn cache'
Expand Down Expand Up @@ -223,7 +224,7 @@ jobs:
json -I -f ./components/package.json -e "this.version=\"$VERSION_STRING\""
json -I -f ./components/package.json -e "this.dependencies['@opentrons/shared-data']=\"$VERSION_STRING\""
- name: 'publish to npm registry'
run: cd ./components && npm publish --provenace --access public
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && cd ./components && npm publish --provenace --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/shared-data-test-lint-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ jobs:
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: 'cache yarn cache'
uses: actions/cache@v3
with:
Expand All @@ -253,7 +254,7 @@ jobs:
VERSION_STRING=$(echo ${{ github.ref }} | sed -E 's/refs\/tags\/(components|shared-data)@//')
json -I -f ./shared-data/package.json -e "this.version=\"$VERSION_STRING\""
- name: 'publish to npm registry'
run: cd ./shared-data && npm publish --provenace --access public
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && cd ./shared-data && npm publish --provenace --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 14a3340

Please sign in to comment.