Skip to content

Commit

Permalink
Merge pull request #4220 from AzureAD/release-staging
Browse files Browse the repository at this point in the history
Remove registry from setup-node
  • Loading branch information
tnorling authored Nov 2, 2021
2 parents 01febaa + 0da69a2 commit 47b0c28
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,17 @@ jobs:
build:
if: (github.event.pull_request.merged == true && github.head_ref == 'release-staging')
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
# Checkout the code
- uses: actions/checkout@v2
# Setup node with version 12.x and NPM registry url
# Setup node with version 12.x
- uses: actions/setup-node@v1
with:
registry-url: "https://registry.npmjs.org"

#- name: Set npm auth token
# run: npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"

- name: Publish msal-core
working-directory: lib/msal-core
env:
CDN_EUNO_SAS: ${{ secrets.CDN_EUNO_SAS}}
CDN_USWE_SAS: ${{ secrets.CDN_USWE_SAS}}
run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > .npmrc
npm install
npm run build
npm run cdn:sri
npm publish
rm .npmrc

- name: Publish msal-common
working-directory: lib/msal-common
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > .npmrc
npm install
Expand All @@ -51,6 +33,7 @@ jobs:
- name: Publish msal-browser
working-directory: lib/msal-browser
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
CDN_EUNO_SAS: ${{ secrets.CDN_EUNO_SAS}}
CDN_USWE_SAS: ${{ secrets.CDN_USWE_SAS}}
run: |
Expand All @@ -62,6 +45,8 @@ jobs:
- name: Publish msal-node
working-directory: lib/msal-node
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > .npmrc
npm install
Expand All @@ -70,6 +55,8 @@ jobs:
- name: Publish msal-angular
working-directory: lib/msal-angular
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > .npmrc
npm install
Expand All @@ -78,6 +65,8 @@ jobs:
- name: Publish msal-react
working-directory: lib/msal-react
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > .npmrc
npm install
Expand All @@ -86,6 +75,8 @@ jobs:
- name: Publish node-extensions
working-directory: extensions/msal-node-extensions
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > .npmrc
npm install
Expand Down

0 comments on commit 47b0c28

Please sign in to comment.