Commit 9f849942 authored by Liam Horne's avatar Liam Horne

ci: add .npmrc in canary build workflow file

parent 73a355df
...@@ -28,7 +28,6 @@ jobs: ...@@ -28,7 +28,6 @@ jobs:
uses: actions/setup-node@master uses: actions/setup-node@master
with: with:
node-version: 12.x node-version: 12.x
registry-url: 'https://registry.npmjs.org'
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
...@@ -45,6 +44,14 @@ jobs: ...@@ -45,6 +44,14 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: yarn run: yarn
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish To NPM or Create Release Pull Request - name: Publish To NPM or Create Release Pull Request
id: changesets id: changesets
run: | run: |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment