Skip to content

Commit 807f30b

Browse files
committed
chore: fix secrets in github actions
1 parent cfc486c commit 807f30b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ jobs:
3838
run: |
3939
echo "secrets.ARTIFACTORY_USERNAME=${{ secrets.ARTIFACTORY_USERNAME }}"
4040
echo "secrets.ARTIFACTORY_API_KEY=${{ secrets.ARTIFACTORY_API_KEY }}"
41-
echo "ARTIFACTORY_USERNAME=${{ ARTIFACTORY_USERNAME }}"
42-
echo "ARTIFACTORY_API_KEY=${{ ARTIFACTORY_API_KEY }}"
4341
4442
- name: Configure .npmrc for publishing
4543
run: |
4644
echo "@atlassian:registry=https://packages.atlassian.com/artifactory/api/npm/npm-public/" >> ~/.npmrc
47-
echo "//packages.atlassian.com/api/npm/npm-public/:_password=${{ ARTIFACTORY_API_KEY }}" >> ~/.npmrc
48-
echo "//packages.atlassian.com/api/npm/npm-public/:username=${ARTIFACTORY_USERNAME}" >> ~/.npmrc
49-
echo "//packages.atlassian.com/api/npm/npm-public/:email=${ARTIFACTORY_USERNAME}@your-domain.com" >> ~/.npmrc
45+
echo "//packages.atlassian.com/api/npm/npm-public/:_password=${{ secrets.ARTIFACTORY_API_KEY }}" >> ~/.npmrc
46+
echo "//packages.atlassian.com/api/npm/npm-public/:username=${{secrets.ARTIFACTORY_USERNAME}}" >> ~/.npmrc
47+
echo "//packages.atlassian.com/api/npm/npm-public/:email=zxu2@atlassian.com" >> ~/.npmrc
5048
echo "//packages.atlassian.com/api/npm/npm-public/:always-auth=true" >> ~/.npmrc
5149
chmod 600 ~/.npmrc
5250

0 commit comments

Comments
 (0)