Skip to content

Commit 86ce4c3

Browse files
committed
env: add env variables for publish
1 parent e1a142b commit 86ce4c3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
yarn test:unit
2525
env:
2626
CI: true
27-
REACT_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
28-
REACT_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
29-
REACT_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}
27+
VUE_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
28+
VUE_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
29+
VUE_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}

.github/workflows/npmpublish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ jobs:
2727
yarn test
2828
env:
2929
CI: true
30-
31-
publish:
30+
VUE_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
31+
VUE_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
32+
VUE_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}
33+
34+
publish:
3235
needs: build
3336
runs-on: ubuntu-latest
3437
steps:
@@ -41,7 +44,7 @@ jobs:
4144
run: |
4245
npm i -g yarn
4346
yarn config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
44-
yarn publish
47+
yarn publish
4548
env:
4649
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4750
CI: true

0 commit comments

Comments
 (0)