Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move env up
Browse files Browse the repository at this point in the history
b-cooper committed Dec 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 246184f commit 851a95c
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/components-test-build-deploy.yaml
Original file line number Diff line number Diff line change
@@ -164,6 +164,8 @@ jobs:
runs-on: 'ubuntu-latest'
needs: ['js-unit-test', 'determine-build-type']
if: needs.determine-build-type.outputs.type == 'publish'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: 'actions/checkout@v3'
# https://github.com/actions/checkout/issues/290
@@ -201,11 +203,11 @@ jobs:
VERSION_STRING=$(echo ${{ github.ref }} | sed 's/refs\/tags\/components@//')
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: 'cat npmrc'
run: cat ./.npmrc
- name: 'publish to npm registry'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd ./components && yarn publish --provenace --access public
cd ./components && yarn publish --access public
8 changes: 5 additions & 3 deletions .github/workflows/shared-data-test-lint-deploy.yaml
Original file line number Diff line number Diff line change
@@ -215,6 +215,8 @@ jobs:
runs-on: 'ubuntu-latest'
needs: ['js-test', 'publish-switch']
if: needs.publish-switch.outputs.should_publish == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: 'actions/checkout@v3'
# https://github.com/actions/checkout/issues/290
@@ -251,9 +253,9 @@ jobs:
npm install -g json
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: 'cat npmrc'
run: cat ./.npmrc
- name: 'publish to npm registry'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd ./shared-data && yarn publish --provenace --access public
cd ./shared-data && yarn publish --access public

0 comments on commit 851a95c

Please sign in to comment.