File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,16 +71,13 @@ jobs:
7171 with :
7272 node-version : 16.x
7373 cache : " npm"
74- registry-url : " https://npm.pkg.github.com"
7574 scope : ' @actions'
7675
7776 - name : Parse version from lerna.json
7877 run : |
7978 echo "PKG_VERSION=$(node -p -e "require('./lerna.json').version")" >> $GITHUB_ENV
8079
8180 - run : npm ci
82- env :
83- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8481
8582 - name : Create release
8683 uses : actions/github-script@v6
@@ -100,8 +97,13 @@ jobs:
10097 core.summary.addLink(`Release v${{ env.PKG_VERSION }}`, release.data.html_url);
10198 await core.summary.write();
10299
100+ - name : setup authentication
101+ run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
102+ env :
103+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
104+
103105 - name : Publish packages
104106 run : |
105107 lerna publish ${{ env.PKG_VERSION }} --yes --no-git-reset --no-git-tag-version
106108 env :
107- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments